git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
dbebe0f
)
s4-pvfs: when uwrap is enabled, ignore chown errors
author
Andrew Tridgell
<tridge@samba.org>
Sat, 17 Oct 2009 01:58:17 +0000
(12:58 +1100)
committer
Andrew Tridgell
<tridge@samba.org>
Sat, 17 Oct 2009 02:01:04 +0000
(13:01 +1100)
chown is expected to fail under uwrap
source4/ntvfs/posix/pvfs_acl.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/posix/pvfs_acl.c
b/source4/ntvfs/posix/pvfs_acl.c
index 612b96a3eaeae44e1beaa09bacfb1eca5aa9fb01..26515cfe1a6249cfc4a9ea3b462d085196b468ef 100644
(file)
--- 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);
}
} else {
ret = fchown(fd, new_uid, new_gid);
}
+ if (errno == EPERM && uwrap_enabled()) {
+ ret = 0;
+ }
if (ret == -1) {
return pvfs_map_errno(pvfs, errno);
}
if (ret == -1) {
return pvfs_map_errno(pvfs, errno);
}