diff options
author | Neil Brown <neilb@suse.de> | 2006-08-09 08:08:10 +1000 |
---|---|---|
committer | Neil Brown <neilb@suse.de> | 2006-08-09 08:08:10 +1000 |
commit | 2ebc9dab1bfe6c6a4d449f132ac51c137ff7fd64 (patch) | |
tree | 183dd4c1934789a5f34ad74ebff089db996851a5 /utils/exportfs | |
parent | c74c5af6fd1e130b565d4ffa67ef68cbc4e6790d (diff) | |
download | nfs-utils-2ebc9dab1bfe6c6a4d449f132ac51c137ff7fd64.tar.gz nfs-utils-2ebc9dab1bfe6c6a4d449f132ac51c137ff7fd64.tar.xz nfs-utils-2ebc9dab1bfe6c6a4d449f132ac51c137ff7fd64.zip |
One final step in convertion of anon = -2 -> 65534
Printing export options should avoid printing 'anonuid=65534'
rather than avoiding 'anonuid=-2'.
Diffstat (limited to 'utils/exportfs')
-rw-r--r-- | utils/exportfs/exportfs.c | 4 |
1 files 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 != '(')? ')' : ' '); |