Fix from gregory@networksentry.co.za, don't clobber the comment if it
authorJeremy Allison <jra@samba.org>
Mon, 15 Sep 2003 21:27:36 +0000 (21:27 +0000)
committerJeremy Allison <jra@samba.org>
Mon, 15 Sep 2003 21:27:36 +0000 (21:27 +0000)
exists.
Jeremy.
(This used to be commit c8bfde5be9f0a3603f7333ff4266ad19c20cb9f9)

source3/utils/net_groupmap.c

index f99876bbd80cb3fcb4ba14c7783781ea34be65a1..323f4afbc3b778486d575c50d20352f7b380f9e0 100644 (file)
@@ -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 );