diff options
author | Andrew Tridgell <tridge@samba.org> | 2010-03-05 17:52:35 +1100 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2010-03-05 23:07:31 +1100 |
commit | ace6d75ae6f953b76fa9709857af4744020cd6fb (patch) | |
tree | f125e6a22e60284437b55eb915ab62ccbe979a7c /source4/ntvfs/posix/pvfs_rename.c | |
parent | 034bcaf14d1bc651c8b51b489aebcfa392158f2c (diff) | |
download | samba-ace6d75ae6f953b76fa9709857af4744020cd6fb.tar.gz samba-ace6d75ae6f953b76fa9709857af4744020cd6fb.tar.bz2 samba-ace6d75ae6f953b76fa9709857af4744020cd6fb.zip |
s4-pvfs: use pvfs_sys_*() functions to wrap posix calls
This allows for root override, which fixes many problems with
mismatches between NT ACL permissions and unix permissions.
Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
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 66c1427a11..e4448d3442 100644 --- a/source4/ntvfs/posix/pvfs_rename.c +++ b/source4/ntvfs/posix/pvfs_rename.c @@ -37,7 +37,7 @@ NTSTATUS pvfs_do_rename(struct pvfs_state *pvfs, uint32_t mask; NTSTATUS status; - if (rename(name1->full_name, name2) == -1) { + if (pvfs_sys_rename(pvfs, name1->full_name, name2) == -1) { return pvfs_map_errno(pvfs, errno); } |