mirror of
https://git.openafs.org/openafs.git
synced 2025-01-21 00:10:15 +00:00
windows-fs-uuid-20071016
do not require afs client administrator access to display the current Uuid value.
This commit is contained in:
parent
7b2fc6e8d5
commit
89c8d7e125
@ -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 */
|
||||
|
Loading…
Reference in New Issue
Block a user