summaryrefslogtreecommitdiffstats
path: root/support/nfs/exports.c
diff options
context:
space:
mode:
authorJianhong Yin <yin-jianhong@163.com>2016-11-22 14:03:37 -0500
committerSteve Dickson <steved@redhat.com>2016-11-22 14:04:31 -0500
commit37c07fa0b74a29dea18d359068e9189c5159c49d (patch)
tree925731a6cc272c5b96a39b1901dca52a03e748c6 /support/nfs/exports.c
parent126c48afb88245a03bd5e388846d5a68ed4bb2df (diff)
downloadnfs-utils-37c07fa0b74a29dea18d359068e9189c5159c49d.tar.gz
nfs-utils-37c07fa0b74a29dea18d359068e9189c5159c49d.tar.xz
nfs-utils-37c07fa0b74a29dea18d359068e9189c5159c49d.zip
exportfs: remove redundant exports options output
before this commit, run 'exportfs -s' will output some options more than one time. for example: /path *(rw,no_root_squash,rw,secure,no_root_squash,no_all_squash) the options rw,no_root_squash,etc will be print twice. the reason is secinfo_show() will show these security options again this patch remove these redundant outputs. Signed-off-by: Jianhong Yin <yin-jianhong@163.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/exports.c')
-rw-r--r--support/nfs/exports.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/support/nfs/exports.c b/support/nfs/exports.c
index 0aea6f1..d992747 100644
--- a/support/nfs/exports.c
+++ b/support/nfs/exports.c
@@ -197,7 +197,6 @@ static const struct secinfo_flag_displaymap {
const char *set;
const char *unset;
} secinfo_flag_displaymap[] = {
- { NFSEXP_READONLY, "ro", "rw" },
{ NFSEXP_INSECURE_PORT, "insecure", "secure" },
{ NFSEXP_ROOTSQUASH, "root_squash", "no_root_squash" },
{ NFSEXP_ALLSQUASH, "all_squash", "no_all_squash" },