From df34e804fc1a44e6ff096fbaf7a643778e857481 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Fri, 4 Feb 2011 17:48:10 -0800 Subject: Fix try_chown code. Use new vfs_chown_fsp() which always trys fd first. Autobuild-User: Jeremy Allison Autobuild-Date: Sat Feb 5 03:33:59 CET 2011 on sn-devel-104 --- source3/modules/nfs4_acls.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/modules') 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", -- cgit