mirror of
https://github.com/chromium/crashpad.git
synced 2025-03-09 22:16:13 +00:00
[fuchsia] remove Fuchsia-specific code in MoveFileOrDirectory
ZX-1729 has been fixed upstream Change-Id: Ia9c55b13169db650eb4ca0562434ae19a6f44eaf Reviewed-on: https://chromium-review.googlesource.com/c/1366638 Reviewed-by: Scott Graham <scottmg@chromium.org> Commit-Queue: Francois Rousseau <frousseau@google.com>
This commit is contained in:
parent
1a9209b581
commit
9b6dde9101
@ -65,14 +65,6 @@ bool LoggingCreateDirectory(const base::FilePath& path,
|
||||
|
||||
bool MoveFileOrDirectory(const base::FilePath& source,
|
||||
const base::FilePath& dest) {
|
||||
#if defined(OS_FUCHSIA)
|
||||
// Fuchsia fails and sets errno to EINVAL if source and dest are the same.
|
||||
// Upstream bug is ZX-1729.
|
||||
if (!source.empty() && source == dest) {
|
||||
return true;
|
||||
}
|
||||
#endif // OS_FUCHSIA
|
||||
|
||||
if (rename(source.value().c_str(), dest.value().c_str()) != 0) {
|
||||
PLOG(ERROR) << "rename " << source.value().c_str() << ", "
|
||||
<< dest.value().c_str();
|
||||
|
Loading…
x
Reference in New Issue
Block a user