]> git.michaelhowe.org Git - packages/o/openafs.git/commitdiff
STABLE14-admin-group-nsis-20041004
authorJeffrey Altman <jaltman@mit.edu>
Mon, 4 Oct 2004 08:35:38 +0000 (08:35 +0000)
committerJeffrey Altman <jaltman@secure-endpoints.com>
Mon, 4 Oct 2004 08:35:38 +0000 (08:35 +0000)
correct the test for -create and -remove so that the proper
action is taken for each

(cherry picked from commit 04ec8ea29d1440beca6e8be9bac12a64650c900b)

src/WINNT/install/NSIS/AdminGroup.cpp

index e3adcacceb8bc68cb2f2ac523dfa38f4c2d9fe7f..7d9f170fc4e1ae9156e958396714b4d696e2a0da 100644 (file)
@@ -62,7 +62,7 @@ int main(int argc, char ** argv) {
         return 1;
     }
 
-    if(stricmp(argv[1], "-create")) {
+    if(!stricmp(argv[1], "-create")) {
         rv = createAfsAdminGroup();
         if(rv) {
             if(rv != ERROR_ALIAS_EXISTS) {
@@ -77,7 +77,7 @@ int main(int argc, char ** argv) {
             if(rv)
                 fprintf(stderr, "%s: Can't populate AFS Client Admin group. NetApi error %u\n", rv);
         }
-    } else if(stricmp(argv[1], "-remove")) {
+    } else if(!stricmp(argv[1], "-remove")) {
         removeAfsAdminGroup();
         rv = 0;
     } else {