Vista returns ACCESS_DENIED here
[kai/samba.git] / source / ntvfs / posix / pvfs_acl.c
index f1e469f7909fdb9b8b394cd36687fea606fa844f..507c22f05026845d8b92859e243e5ca13e93a849 100644 (file)
@@ -457,7 +457,7 @@ NTSTATUS pvfs_access_check_unix(struct pvfs_state *pvfs,
        }
 
        if (uid != 0 && (*access_mask & SEC_FLAG_SYSTEM_SECURITY)) {
-               return NT_STATUS_PRIVILEGE_NOT_HELD;
+               return NT_STATUS_ACCESS_DENIED;
        }
 
        if (*access_mask & ~max_bits) {