mirror of
https://git.openafs.org/openafs.git
synced 2025-01-20 16:00:12 +00:00
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 04ec8ea29d
)
This commit is contained in:
parent
193daef53f
commit
8be53266e7
@ -62,7 +62,7 @@ int main(int argc, char ** argv) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(stricmp(argv[1], "-create")) {
|
if(!stricmp(argv[1], "-create")) {
|
||||||
rv = createAfsAdminGroup();
|
rv = createAfsAdminGroup();
|
||||||
if(rv) {
|
if(rv) {
|
||||||
if(rv != ERROR_ALIAS_EXISTS) {
|
if(rv != ERROR_ALIAS_EXISTS) {
|
||||||
@ -77,7 +77,7 @@ int main(int argc, char ** argv) {
|
|||||||
if(rv)
|
if(rv)
|
||||||
fprintf(stderr, "%s: Can't populate AFS Client Admin group. NetApi error %u\n", 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();
|
removeAfsAdminGroup();
|
||||||
rv = 0;
|
rv = 0;
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user