From: Neil Brown Date: Tue, 8 Aug 2006 22:08:10 +0000 (+1000) Subject: One final step in convertion of anon = -2 -> 65534 X-Git-Tag: nfs-utils-1-0-11~50 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=2ebc9dab1bfe6c6a4d449f132ac51c137ff7fd64;p=nfs-utils.git One final step in convertion of anon = -2 -> 65534 Printing export options should avoid printing 'anonuid=65534' rather than avoiding 'anonuid=-2'. --- 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 != '(')? ')' : ' ');