diff options
author | Andrew Tridgell <tridge@samba.org> | 2004-10-22 06:55:18 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:02:25 -0500 |
commit | f71e7ae1e34510081c393f5ae73a279e8c4d0641 (patch) | |
tree | 47de7aec83d0ff0649758cacc046f2aeb2133c0c /source4/ntvfs/posix/pvfs_rename.c | |
parent | 6e8867bff5ac95a7f509e3fdc60183cc64d921eb (diff) | |
download | samba-f71e7ae1e34510081c393f5ae73a279e8c4d0641.tar.gz samba-f71e7ae1e34510081c393f5ae73a279e8c4d0641.tar.bz2 samba-f71e7ae1e34510081c393f5ae73a279e8c4d0641.zip |
r3133: - more consistent error checking in rename and setfileinfo
- add paranoid checking of device/inode change during open to detect race conditions
(This used to be commit 043361fed487ed494fa497ffde1007b3f3bc0c29)
Diffstat (limited to 'source4/ntvfs/posix/pvfs_rename.c')
-rw-r--r-- | source4/ntvfs/posix/pvfs_rename.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/posix/pvfs_rename.c b/source4/ntvfs/posix/pvfs_rename.c index 51393c9499..80b6a510b0 100644 --- a/source4/ntvfs/posix/pvfs_rename.c +++ b/source4/ntvfs/posix/pvfs_rename.c @@ -62,7 +62,7 @@ NTSTATUS pvfs_rename(struct ntvfs_module_context *ntvfs, return NT_STATUS_OBJECT_NAME_COLLISION; } - if (rename(name1->full_name, name2->full_name) != 0) { + if (rename(name1->full_name, name2->full_name) == -1) { return pvfs_map_errno(pvfs, errno); } |