summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteinar H. Gunderson <sesse@debian.org>2006-07-05 15:51:30 +1000
committerNeil Brown <neilb@suse.de>2006-07-05 15:51:30 +1000
commit3419e37500dfd19cb2c246260dbd2bc0ee4704d4 (patch)
tree7c1d7fc1b766858f5e755d4ff4ac252a5fd5e7e1
parent65735eef8a9441901245f6047edafc50f2d97c97 (diff)
downloadnfs-utils-3419e37500dfd19cb2c246260dbd2bc0ee4704d4.tar.gz
nfs-utils-3419e37500dfd19cb2c246260dbd2bc0ee4704d4.tar.xz
nfs-utils-3419e37500dfd19cb2c246260dbd2bc0ee4704d4.zip
Use 65534 for anon uid/gid rather than -2
This is more consistant across platforms.
-rw-r--r--support/nfs/exports.c8
-rw-r--r--utils/exportfs/exports.man2
2 files changed, 5 insertions, 5 deletions
diff --git a/support/nfs/exports.c b/support/nfs/exports.c
index 18ce2c5..e6de71a 100644
--- a/support/nfs/exports.c
+++ b/support/nfs/exports.c
@@ -89,8 +89,8 @@ getexportent(int fromkernel, int fromexports)
ee.e_flags &= ~NFSEXP_GATHERED_WRITES;
}
ee.e_maptype = CLE_MAP_IDENT;
- ee.e_anonuid = -2;
- ee.e_anongid = -2;
+ ee.e_anonuid = 65534;
+ ee.e_anongid = 65534;
ee.e_squids = NULL;
ee.e_sqgids = NULL;
ee.e_mountpoint = NULL;
@@ -271,8 +271,8 @@ mkexportent(char *hname, char *path, char *options)
ee.e_flags = EXPORT_DEFAULT_FLAGS;
ee.e_maptype = CLE_MAP_IDENT;
- ee.e_anonuid = -2;
- ee.e_anongid = -2;
+ ee.e_anonuid = 65534;
+ ee.e_anongid = 65534;
ee.e_squids = NULL;
ee.e_sqgids = NULL;
ee.e_mountpoint = NULL;
diff --git a/utils/exportfs/exports.man b/utils/exportfs/exports.man
index a37e75f..55bd364 100644
--- a/utils/exportfs/exports.man
+++ b/utils/exportfs/exports.man
@@ -338,7 +338,7 @@ By default,
'''in the password file at startup time. If it isn't found, a uid and gid
.I exportfs
chooses a uid and gid
-of -2 (i.e. 65534) for squashed access. These values can also be overridden by
+of 65534 for squashed access. These values can also be overridden by
the
.IR anonuid " and " anongid
options.