windows-fs-uuid-20071016

do not require afs client administrator access to display the current
Uuid value.
This commit is contained in:
Jeffrey Altman 2007-10-16 18:24:31 +00:00
parent 7b2fc6e8d5
commit 89c8d7e125

View File

@ -3539,19 +3539,18 @@ UuidCmd(struct cmd_syndesc *asp, char *arock)
struct ViceIoctl blob;
char * uuidstring = NULL;
#ifdef WIN32
if ( !IsAdmin() ) {
fprintf (stderr,"Permission denied: requires AFS Client Administrator access.\n");
return EACCES;
}
#else
if (geteuid()) {
fprintf (stderr, "Permission denied: requires root access.\n");
return EACCES;
}
#endif
if (asp->parms[0].items) {
#ifdef WIN32
if ( !IsAdmin() ) {
fprintf (stderr,"Permission denied: requires AFS Client Administrator access.\n");
return EACCES;
}
#else
if (geteuid()) {
fprintf (stderr, "Permission denied: requires root access.\n");
return EACCES;
}
#endif
inValue = 1; /* generate new UUID */
} else {
inValue = 0; /* just show the current UUID */