git://git.openafs.org
/
openafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
e845efc
)
admin-group-nsis-20041004
author
Jeffrey Altman
<jaltman@mit.edu>
Mon, 4 Oct 2004 08:35:13 +0000 (08:35 +0000)
committer
Jeffrey Altman
<jaltman@secure-endpoints.com>
Mon, 4 Oct 2004 08:35:13 +0000 (08:35 +0000)
correct the test for -create and -remove so that the proper
action is taken for each
src/WINNT/install/NSIS/AdminGroup.cpp
patch
|
blob
|
history
diff --git
a/src/WINNT/install/NSIS/AdminGroup.cpp
b/src/WINNT/install/NSIS/AdminGroup.cpp
index
e3adcac
..
7d9f170
100644
(file)
--- 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 {