]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
Fix the build of nfs4_acls.c
authorVolker Lendecke <vl@samba.org>
Fri, 11 Jul 2008 11:03:42 +0000 (13:03 +0200)
committerVolker Lendecke <vl@samba.org>
Fri, 11 Jul 2008 11:03:42 +0000 (13:03 +0200)
source/modules/nfs4_acls.c

index 927163d7b0fab91511ba8f115d9e0eada1228bfe..dc1b70ccb7048dca8a0a32ed919e4cf923d97ce6 100644 (file)
@@ -731,7 +731,8 @@ NTSTATUS smb_set_nt_acl_nfs4(files_struct *fsp,
                        need_chown = True;
                }
                if (need_chown) {
-                       if ((newUID == (uid_t)-1 || newUID == fsp->conn->server_info->uid)) {
+                       if ((newUID == (uid_t)-1
+                            || newUID == fsp->conn->server_info->utok.uid)) {
                                if(try_chown(fsp->conn, fsp->fsp_name, newUID, newGID)) {
                                        DEBUG(3,("chown %s, %u, %u failed. Error = %s.\n",
                                                 fsp->fsp_name, (unsigned int)newUID, (unsigned int)newGID,