From 5def6f0ecad18c5a3896dc27c1972299594188cd Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 17 Mar 2011 23:51:12 +0100 Subject: s3-net: make sure we set correct default user flags in rap_user_add(). Guenther --- source3/utils/net_rap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit