s3:utils: let smbstatus report anonymous signing/encryption explicitly
[samba.git] / source3 / modules / nfs4_acls.c
index cc9233da87d5d5a2bf235e2be0de954e78176ea9..c80f8390170b92a3e87e76571f833e2a4a86b229 100644 (file)
@@ -548,7 +548,7 @@ static bool smbacl4_nfs42win(TALLOC_CTX *mem_ctx,
                    (win_ace_flags & (SEC_ACE_FLAG_OBJECT_INHERIT|
                                      SEC_ACE_FLAG_CONTAINER_INHERIT))) {
                        /*
-                        * GPFS sets inherits dir_inhert and file_inherit flags
+                        * GPFS sets inherits dir_inherit and file_inherit flags
                         * to files, too, which confuses windows, and seems to
                         * be wrong anyways. ==> Map these bits away for files.
                         */
@@ -1201,12 +1201,12 @@ NTSTATUS smb_set_nt_acl_nfs4(vfs_handle_struct *handle, files_struct *fsp,
        smbacl4_dump_nfs4acl(10, theacl);
 
        if (set_acl_as_root) {
-               set_effective_capability(DAC_OVERRIDE_CAPABILITY);
+               become_root();
        }
        result = set_nfs4_native(handle, fsp, theacl);
        saved_errno = errno;
        if (set_acl_as_root) {
-               drop_effective_capability(DAC_OVERRIDE_CAPABILITY);
+               unbecome_root();
        }
 
        TALLOC_FREE(frame);