mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 05:27:44 +00:00
STABLE14-windows-fs-checkserver-20070302
FIXES 55234 The "fs checkservers" command when not being used to change the check interval should not require admin privilege. (cherry picked from commit e4d3681e3d9ba58c315f39d3852833b11811474c)
This commit is contained in:
parent
592f06bd4e
commit
d2e10e1416
@ -2096,7 +2096,7 @@ CheckServersCmd(struct cmd_syndesc *as, char *arock)
|
||||
/* sanity check */
|
||||
if(checkserv.tinterval<0) {
|
||||
printf("Warning: The negative -interval is ignored; treated as an inquiry\n");
|
||||
checkserv.tinterval=0;
|
||||
checkserv.tinterval=-1;
|
||||
} else if(checkserv.tinterval> 600) {
|
||||
printf("Warning: The maximum -interval value is 10 mins (600 secs)\n");
|
||||
checkserv.tinterval=600; /* 10 min max interval */
|
||||
@ -2105,7 +2105,7 @@ CheckServersCmd(struct cmd_syndesc *as, char *arock)
|
||||
checkserv.tinterval = -1; /* don't change current interval */
|
||||
}
|
||||
|
||||
if ( checkserv.tinterval != 0 ) {
|
||||
if ( checkserv.tinterval >= 0 ) {
|
||||
#ifdef WIN32
|
||||
if ( !IsAdmin() ) {
|
||||
fprintf (stderr,"Permission denied: requires AFS Client Administrator access.\n");
|
||||
|
Loading…
x
Reference in New Issue
Block a user