diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2015-05-06 16:17:40 -0400 |
---|---|---|
committer | Steve Dickson <steved@redhat.com> | 2015-05-06 16:17:40 -0400 |
commit | e69eaaf93626e87dd93b345e1c84ffdd6c66ce6c (patch) | |
tree | a50fcc23e72566d4c5198d44dc54223e95699363 /support/nfs | |
parent | d57c433481c7ee5fc50a186188f9c205d16746c1 (diff) | |
download | nfs-utils-e69eaaf93626e87dd93b345e1c84ffdd6c66ce6c.tar.gz nfs-utils-e69eaaf93626e87dd93b345e1c84ffdd6c66ce6c.tar.xz nfs-utils-e69eaaf93626e87dd93b345e1c84ffdd6c66ce6c.zip |
security information number as, 1 1 0 0
It's caused by commit 4a1ad4aa30,
"mountd: Enable all auth flavors on pseudofs exports"
This patch removes duplicate secinfo and invalid secinfo (zero).
Acked-by: Scott Mayhew <smayhew@redhat.com>
Signed-off-by: Kinglong Mee <kinglongmee@gmail.com>
Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'support/nfs')
-rw-r--r-- | support/nfs/exports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 761a046..0aea6f1 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -408,7 +408,7 @@ int secinfo_addflavor(struct flav_info *flav, struct exportent *ep) struct sec_entry *p; for (p=ep->e_secinfo; p->flav; p++) { - if (p->flav == flav) + if (p->flav == flav || p->flav->fnum == flav->fnum) return p - ep->e_secinfo; } if (p - ep->e_secinfo >= SECFLAVOR_COUNT) { |