summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2003-09-15 21:27:36 +0000
committerJeremy Allison <jra@samba.org>2003-09-15 21:27:36 +0000
commit2c21d31c92aeed99016d609a2e8e736016fdd9c7 (patch)
tree461241eb11d275be04edb5f8975d35eec0072c9f /source3
parent9b8cbdfc2b0a601da1424784fbf02b705cc3fc8d (diff)
downloadsamba-2c21d31c92aeed99016d609a2e8e736016fdd9c7.tar.gz
samba-2c21d31c92aeed99016d609a2e8e736016fdd9c7.tar.bz2
samba-2c21d31c92aeed99016d609a2e8e736016fdd9c7.zip
Fix from gregory@networksentry.co.za, don't clobber the comment if it
exists. Jeremy. (This used to be commit c8bfde5be9f0a3603f7333ff4266ad19c20cb9f9)
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 );