git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
249340c
)
s3-net: make sure we set correct default user flags in rap_user_add().
author
Günther Deschner
<gd@samba.org>
Thu, 17 Mar 2011 22:51:12 +0000
(23:51 +0100)
committer
Günther Deschner
<gd@samba.org>
Fri, 18 Mar 2011 00:24:07 +0000
(
01:24
+0100)
Guenther
source3/utils/net_rap.c
patch
|
blob
|
history
diff --git
a/source3/utils/net_rap.c
b/source3/utils/net_rap.c
index 2cc42c89e9550cf6be2d02f8c197a749ad3e48f9..afda2227406d350c69e3c5444ff5d62e23e9c80b 100644
(file)
--- a/
source3/utils/net_rap.c
+++ b/
source3/utils/net_rap.c
@@
-825,7
+825,7
@@
static int rap_user_add(struct net_context *c, int argc, const char **argv)
return -1;
safe_strcpy((char *)userinfo.user_name, argv[0], sizeof(userinfo.user_name)-1);
- if (c->opt_flags ==
-1
)
+ if (c->opt_flags ==
0
)
c->opt_flags = 0x21;
userinfo.userflags = c->opt_flags;