summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-15 21:27:33 +0000
committerJeremy Allison <jra@samba.org>2003-09-15 21:27:33 +0000
commit77adfbf4605bddeb1211586bb4ea4b1042ddbcd5 (patch)
tree67cf16dd03a1db72012dc4890490309016885139 /source3
parentf208ab8ac24efd1cf34d01d6718cf2d9aa065b13 (diff)
downloadsamba-77adfbf4605bddeb1211586bb4ea4b1042ddbcd5.tar.gz
samba-77adfbf4605bddeb1211586bb4ea4b1042ddbcd5.tar.bz2
samba-77adfbf4605bddeb1211586bb4ea4b1042ddbcd5.zip
Fix from gregory@networksentry.co.za, don't clobber the comment if it
exists. Jeremy. (This used to be commit a7ef2ce34931d9fcdeb8ecbcad981d96db4c409a)
Diffstat (limited to 'source3')
-rw-r--r--source3/utils/net_groupmap.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/utils/net_groupmap.c b/source3/utils/net_groupmap.c
index f99876bbd8..323f4afbc3 100644
--- a/source3/utils/net_groupmap.c
+++ b/source3/utils/net_groupmap.c
@@ -274,10 +274,10 @@ static int net_groupmap_add(int argc, const char **argv)
sid_to_string(string_sid, &sid);
}
- if (ntcomment[0])
+ if (!ntcomment[0])
fstrcpy(ntcomment, "Local Unix group");
- if ( !ntgroup[0] )
+ if (!ntgroup[0] )
fstrcpy( ntgroup, unixgrp );