diff options
author | NeilBrown <neilb@suse.com> | 2016-12-06 13:18:26 -0500 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2016-12-20 13:29:04 -0500 |
commit | e54b49cb13f9ecc6a9133957cda4c6d786967841 (patch) | |
tree | 4411e3e705855eda65e232c5c28ab7eb4eb586aa /support/nfs/conffile.c | |
parent | 6f6fb2fb99cc4408bcde26828d7cea0b1389de83 (diff) | |
download | nfs-utils-e54b49cb13f9ecc6a9133957cda4c6d786967841.tar.gz nfs-utils-e54b49cb13f9ecc6a9133957cda4c6d786967841.tar.xz nfs-utils-e54b49cb13f9ecc6a9133957cda4c6d786967841.zip |
conffile: ignore setting of empty string
A value setting like
foo =
is now equivalent to not setting "foo" at all.
This is likely to be least confusing.
Signed-off-by: NeilBrown <neilb@suse.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs/conffile.c')
-rw-r--r-- | support/nfs/conffile.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/support/nfs/conffile.c b/support/nfs/conffile.c index 947bf9b..eaff5f5 100644 --- a/support/nfs/conffile.c +++ b/support/nfs/conffile.c @@ -748,6 +748,8 @@ conf_set(int transaction, char *section, char *arg, { struct conf_trans *node; + if (!value || !*value) + return 0; node = conf_trans_node(transaction, CONF_SET); if (!node) return 1; |