From: Steinar H. Gunderson Date: Wed, 5 Jul 2006 05:51:30 +0000 (+1000) Subject: Use 65534 for anon uid/gid rather than -2 X-Git-Tag: nfs-utils-1-0-9~9 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=3419e37500dfd19cb2c246260dbd2bc0ee4704d4;p=nfs-utils.git Use 65534 for anon uid/gid rather than -2 This is more consistant across platforms. --- 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.