summaryrefslogtreecommitdiffstats
path: root/utils
diff options
context:
space:
mode:
authorMatthew Treinish <treinish@linux.vnet.ibm.com>2011-08-03 13:10:14 -0400
committerSteve Dickson <steved@redhat.com>2011-08-03 13:41:37 -0400
commit64a21e6c9dd29416fcd903a3f0eaf18d717907dc (patch)
treec4d7f56d25990f46d4c0fffbad3468ed1da5810c /utils
parent64e97d4a1b165de9926669579a584284db931f91 (diff)
downloadnfs-utils-64a21e6c9dd29416fcd903a3f0eaf18d717907dc.tar.gz
nfs-utils-64a21e6c9dd29416fcd903a3f0eaf18d717907dc.tar.xz
nfs-utils-64a21e6c9dd29416fcd903a3f0eaf18d717907dc.zip
mountd: Fixed strcmp usage in in insert groups.
Fixed the usage of strcmp in the duplicate check in insert groups. Fixes an issue with showmount and other commands that required the group information. Signed-off-by: Matthew Treinish <treinish@linux.vnet.ibm.com> Signed-off-by: Steve Dickson <steved@redhat.com>
Diffstat (limited to 'utils')
-rw-r--r--utils/mountd/mountd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils/mountd/mountd.c b/utils/mountd/mountd.c
index 035624c..bcf5080 100644
--- a/utils/mountd/mountd.c
+++ b/utils/mountd/mountd.c
@@ -633,7 +633,7 @@ static void insert_group(struct exportnode *e, char *newname)
struct groupnode *g;
for (g = e->ex_groups; g; g = g->gr_next)
- if (strcmp(g->gr_name, newname))
+ if (!strcmp(g->gr_name, newname))
return;
g = xmalloc(sizeof(*g));