From 2ebc9dab1bfe6c6a4d449f132ac51c137ff7fd64 Mon Sep 17 00:00:00 2001 From: Neil Brown Date: Wed, 9 Aug 2006 08:08:10 +1000 Subject: [PATCH] One final step in convertion of anon = -2 -> 65534 Printing export options should avoid printing 'anonuid=65534' rather than avoiding 'anonuid=-2'. --- utils/exportfs/exportfs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c index c3ba997..cd49a3b 100644 --- a/utils/exportfs/exportfs.c +++ b/utils/exportfs/exportfs.c @@ -412,9 +412,9 @@ dump(int verbose) c = dumpopt(c, "mapping=ugidd"); else if (ep->e_maptype == CLE_MAP_FILE) c = dumpopt(c, "mapping=file"); - if (ep->e_anonuid != -2) + if (ep->e_anonuid != 65534) c = dumpopt(c, "anonuid=%d", ep->e_anonuid); - if (ep->e_anongid != -2) + if (ep->e_anongid != 65534) c = dumpopt(c, "anongid=%d", ep->e_anongid); printf("%c\n", (c != '(')? ')' : ' '); -- 2.39.2