summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2009-10-17 12:58:17 +1100
committerAndrew Tridgell <tridge@samba.org>2009-10-17 13:01:04 +1100
commitbf6fcc612139c27d4b5837611cdafbb05f48d11d (patch)
tree02ceaa299b42077a555931de7e1cd32d1970a39b
parentdbebe0f6216d4e727424ca666b58f58928ddaa08 (diff)
downloadsamba-bf6fcc612139c27d4b5837611cdafbb05f48d11d.tar.gz
samba-bf6fcc612139c27d4b5837611cdafbb05f48d11d.tar.bz2
samba-bf6fcc612139c27d4b5837611cdafbb05f48d11d.zip
s4-pvfs: when uwrap is enabled, ignore chown errors
chown is expected to fail under uwrap
-rw-r--r--source4/ntvfs/posix/pvfs_acl.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/posix/pvfs_acl.c b/source4/ntvfs/posix/pvfs_acl.c
index 612b96a3ea..26515cfe1a 100644
--- a/source4/ntvfs/posix/pvfs_acl.c
+++ b/source4/ntvfs/posix/pvfs_acl.c
@@ -384,6 +384,9 @@ NTSTATUS pvfs_acl_set(struct pvfs_state *pvfs,
} else {
ret = fchown(fd, new_uid, new_gid);
}
+ if (errno == EPERM && uwrap_enabled()) {
+ ret = 0;
+ }
if (ret == -1) {
return pvfs_map_errno(pvfs, errno);
}