git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43491db
)
Correctly check return of rename(2)
author
Volker Lendecke
<vl@samba.org>
Mon, 25 Feb 2008 12:00:24 +0000
(13:00 +0100)
committer
Volker Lendecke
<vl@samba.org>
Mon, 25 Feb 2008 12:05:18 +0000
(13:05 +0100)
Bug 5279 -- Thanks to Max Matveev
(This used to be commit
71641f04d4e9a41775e898f2e4ac3c8792783cd3
)
source3/modules/vfs_default.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_default.c
b/source3/modules/vfs_default.c
index cf135dfd0302c68ff26d2306e06a65163b3dada4..31ebb6352a179d5631c588aab69b9714e068d7f7 100644
(file)
--- a/
source3/modules/vfs_default.c
+++ b/
source3/modules/vfs_default.c
@@
-468,7
+468,7
@@
static int vfswrap_rename(vfs_handle_struct *handle, const char *oldname, const
START_PROFILE(syscall_rename);
result = rename(oldname, newname);
- if (
errno == EXDEV
) {
+ if (
(result == -1) && (errno == EXDEV)
) {
/* Rename across filesystems needed. */
result = copy_reg(oldname, newname);
}