From 3419e37500dfd19cb2c246260dbd2bc0ee4704d4 Mon Sep 17 00:00:00 2001 From: "Steinar H. Gunderson" Date: Wed, 5 Jul 2006 15:51:30 +1000 Subject: [PATCH] Use 65534 for anon uid/gid rather than -2 This is more consistant across platforms. --- support/nfs/exports.c | 8 ++++---- utils/exportfs/exports.man | 2 +- 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. -- 2.39.5