X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=utils%2Fmountd%2Fmountd.c;h=bcf5080a7351b522c436abd24712ae7ff1b43f76;hp=035624c447ccfa68355332802eecdb6eb4069c61;hb=64a21e6c9dd29416fcd903a3f0eaf18d717907dc;hpb=64e97d4a1b165de9926669579a584284db931f91 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));