From: Jeffrey Altman Date: Mon, 4 Oct 2004 08:35:38 +0000 (+0000) Subject: STABLE14-admin-group-nsis-20041004 X-Git-Tag: openafs-devel-1_3_72~6 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=8be53266e7ebe17982b34b1eff7bbdda1daaaff0;p=packages%2Fo%2Fopenafs.git STABLE14-admin-group-nsis-20041004 correct the test for -create and -remove so that the proper action is taken for each (cherry picked from commit 04ec8ea29d1440beca6e8be9bac12a64650c900b) --- diff --git a/src/WINNT/install/NSIS/AdminGroup.cpp b/src/WINNT/install/NSIS/AdminGroup.cpp index e3adcacce..7d9f170fc 100644 --- a/src/WINNT/install/NSIS/AdminGroup.cpp +++ b/src/WINNT/install/NSIS/AdminGroup.cpp @@ -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 {