From ace6d75ae6f953b76fa9709857af4744020cd6fb Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 5 Mar 2010 17:52:35 +1100 Subject: 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 --- source4/ntvfs/posix/pvfs_unlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/ntvfs/posix/pvfs_unlink.c') diff --git a/source4/ntvfs/posix/pvfs_unlink.c b/source4/ntvfs/posix/pvfs_unlink.c index 67e7d76b47..be2ba53148 100644 --- a/source4/ntvfs/posix/pvfs_unlink.c +++ b/source4/ntvfs/posix/pvfs_unlink.c @@ -123,7 +123,7 @@ static NTSTATUS pvfs_unlink_file(struct pvfs_state *pvfs, } /* finally try the actual unlink */ - if (unlink(name->full_name) == -1) { + if (pvfs_sys_unlink(pvfs, name->full_name) == -1) { status = pvfs_map_errno(pvfs, errno); } -- cgit