diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-10-27 13:38:30 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:04:51 -0500 |
commit | fbb44e96169cb0b18cb0a242fd412a88c16faadb (patch) | |
tree | 70cb52678ec193d1fbe73f0b0ef80266899f4b8d /source4/ntvfs | |
parent | bb26de6bbb7b104fcc996dae349a407c9d221592 (diff) | |
download | samba-fbb44e96169cb0b18cb0a242fd412a88c16faadb.tar.gz samba-fbb44e96169cb0b18cb0a242fd412a88c16faadb.tar.bz2 samba-fbb44e96169cb0b18cb0a242fd412a88c16faadb.zip |
r3290: allow SID_ANONYMOUS ( "S-1-5-7" ) to be the users sid
metze
(This used to be commit 177afd4855c66f46c82899b46f030803be63d52a)
Diffstat (limited to 'source4/ntvfs')
-rw-r--r-- | source4/ntvfs/unixuid/vfs_unixuid.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/ntvfs/unixuid/vfs_unixuid.c b/source4/ntvfs/unixuid/vfs_unixuid.c index 440ebd21c8..062f6b1b85 100644 --- a/source4/ntvfs/unixuid/vfs_unixuid.c +++ b/source4/ntvfs/unixuid/vfs_unixuid.c @@ -57,7 +57,7 @@ static NTSTATUS sid_to_unixuid(struct ntvfs_module_context *ntvfs, /* make sure its a user, not a group */ atype = samdb_result_uint(res[0], "sAMAccountType", 0); - if (!atype || (!(atype & ATYPE_ACCOUNT))) { + if (atype && (!(atype & ATYPE_ACCOUNT))) { DEBUG(0,("sid_to_unixuid: sid %s is not an account!\n", sidstr)); talloc_free(ctx); return NT_STATUS_ACCESS_DENIED; |