#ifndef lint
static const char rcsid[] =
- "$Id: grupd.c,v 1.5 1997/10/10 06:23:32 charnier Exp $";
+ "$FreeBSD$";
#endif /* not lint */
#include <stdio.h>
if (grp != NULL && fmtgrentry(&grbuf, &grbuflen, grp, PWF_PASSWD) == -1)
l = -1;
else {
- if ((l = fileupdate(getgrpath(_GROUP), 0644, grbuf, pfx, l, mode)) != 0)
- l = grdb(NULL) == 0;
+ l = fileupdate(getgrpath(_GROUP), 0644, grbuf, pfx, l, mode);
+ if (l == 0)
+ l = grdb(NULL);
}
if (grbuf != NULL)
free(grbuf);