git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bb26de6
)
r3290: allow SID_ANONYMOUS ( "S-1-5-7" ) to be the users sid
author
Stefan Metzmacher
<metze@samba.org>
Wed, 27 Oct 2004 13:38:30 +0000
(13:38 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 18:04:51 +0000
(13:04 -0500)
metze
(This used to be commit
177afd4855c66f46c82899b46f030803be63d52a
)
source4/ntvfs/unixuid/vfs_unixuid.c
patch
|
blob
|
history
diff --git
a/source4/ntvfs/unixuid/vfs_unixuid.c
b/source4/ntvfs/unixuid/vfs_unixuid.c
index 440ebd21c8482993b38ca92155e556d8c64b4a99..062f6b1b85dd7f6b2731feebaf8ed655bef32c59 100644
(file)
--- 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;