summaryrefslogtreecommitdiffstats
path: root/sys/miscfs/umapfs/umap_subr.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/miscfs/umapfs/umap_subr.c')
-rw-r--r--sys/miscfs/umapfs/umap_subr.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/miscfs/umapfs/umap_subr.c b/sys/miscfs/umapfs/umap_subr.c
index a74b3eb..549d3e4 100644
--- a/sys/miscfs/umapfs/umap_subr.c
+++ b/sys/miscfs/umapfs/umap_subr.c
@@ -35,7 +35,7 @@
*
* @(#)umap_subr.c 8.9 (Berkeley) 5/14/95
*
- * $Id: umap_subr.c,v 1.10 1997/02/22 09:40:37 peter Exp $
+ * $Id: umap_subr.c,v 1.11 1997/08/02 14:32:24 bde Exp $
*/
#include <sys/param.h>
@@ -356,6 +356,9 @@ umap_mapids(v_mount, credp)
uid_t uid;
gid_t gid;
+ if (credp == NOCRED)
+ return;
+
unentries = MOUNTTOUMAPMOUNT(v_mount)->info_nentries;
usermap = &(MOUNTTOUMAPMOUNT(v_mount)->info_mapdata[0][0]);
gnentries = MOUNTTOUMAPMOUNT(v_mount)->info_gnentries;
OpenPOWER on IntegriCloud