/* only root can run this code */
return (EACCES);
#else
- if (!afs_suser() && (parm != AFSOP_GETMTU)
+ if (!afs_suser(NULL) && (parm != AFSOP_GETMTU)
&& (parm != AFSOP_GETMASK)) {
/* only root can run this code */
#if defined(KERNEL_HAVE_UERROR)
extern struct osi_file *afs_cacheInodep;
AFS_STATCNT(afs_shutdown);
+ if (afs_initState == 0) {
+ afs_warn("AFS not initialized - not shutting down\n");
+ return;
+ }
+
if (afs_shuttingdown)
return;
afs_shuttingdown = 1;
return (EACCES);
}
#else
- if (!afs_suser()) { /* only root can run this code */
+ if (!afs_suser(NULL)) { /* only root can run this code */
#if defined(KERNEL_HAVE_UERROR)
setuerror(EACCES);
return EACCES;