diff options
author | Günther Deschner <gd@samba.org> | 2011-03-17 23:51:12 +0100 |
---|---|---|
committer | Günther Deschner <gd@samba.org> | 2011-03-18 01:24:07 +0100 |
commit | 5def6f0ecad18c5a3896dc27c1972299594188cd (patch) | |
tree | b1fe1b20c865a23b215b7c44b4254c4dbdd67067 /source3/utils | |
parent | 249340c9c8f515a9d06d52d67f4d42e6751d1cf9 (diff) | |
download | samba-5def6f0ecad18c5a3896dc27c1972299594188cd.tar.gz samba-5def6f0ecad18c5a3896dc27c1972299594188cd.tar.bz2 samba-5def6f0ecad18c5a3896dc27c1972299594188cd.zip |
s3-net: make sure we set correct default user flags in rap_user_add().
Guenther
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net_rap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/utils/net_rap.c b/source3/utils/net_rap.c index 2cc42c89e9..afda222740 100644 --- 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; |