One final step in convertion of anon = -2 -> 65534
authorNeil Brown <neilb@suse.de>
Tue, 8 Aug 2006 22:08:10 +0000 (08:08 +1000)
committerNeil Brown <neilb@suse.de>
Tue, 8 Aug 2006 22:08:10 +0000 (08:08 +1000)
Printing export options should avoid printing 'anonuid=65534'
rather than avoiding 'anonuid=-2'.

utils/exportfs/exportfs.c

index c3ba997..cd49a3b 100644 (file)
@@ -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 != '(')? ')' : ' ');