diff options
author | Jeremy Allison <jra@samba.org> | 2011-02-04 17:48:10 -0800 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2011-02-05 03:33:58 +0100 |
commit | df34e804fc1a44e6ff096fbaf7a643778e857481 (patch) | |
tree | 2714242fa01fd60b8f4b0c6817d84bc34e44d123 /source3/modules | |
parent | ece94989b8a9e39d080d58bb82958c201af79f0d (diff) | |
download | samba-df34e804fc1a44e6ff096fbaf7a643778e857481.tar.gz samba-df34e804fc1a44e6ff096fbaf7a643778e857481.tar.bz2 samba-df34e804fc1a44e6ff096fbaf7a643778e857481.zip |
Fix try_chown code. Use new vfs_chown_fsp() which always trys fd first.
Autobuild-User: Jeremy Allison <jra@samba.org>
Autobuild-Date: Sat Feb 5 03:33:59 CET 2011 on sn-devel-104
Diffstat (limited to 'source3/modules')
-rw-r--r-- | source3/modules/nfs4_acls.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/modules/nfs4_acls.c b/source3/modules/nfs4_acls.c index e2f9fe3a81..6e6b015f07 100644 --- a/source3/modules/nfs4_acls.c +++ b/source3/modules/nfs4_acls.c @@ -765,14 +765,14 @@ NTSTATUS smb_set_nt_acl_nfs4(files_struct *fsp, if (((newUID != (uid_t)-1) && (sbuf.st_ex_uid != newUID)) || ((newGID != (gid_t)-1) && (sbuf.st_ex_gid != newGID))) { - if(try_chown(fsp->conn, fsp->fsp_name, newUID, - newGID)) { + status = try_chown(fsp, newUID, newGID); + if (!NT_STATUS_IS_OK(status)) { DEBUG(3,("chown %s, %u, %u failed. Error = " "%s.\n", fsp_str_dbg(fsp), (unsigned int)newUID, (unsigned int)newGID, - strerror(errno))); - return map_nt_error_from_unix(errno); + nt_errstr(status))); + return status; } DEBUG(10,("chown %s, %u, %u succeeded.\n", |