svn commit: r338350 - head/usr.sbin/nfsuserd
Mark Johnston
markj at FreeBSD.org
Tue Aug 28 15:18:15 UTC 2018
Author: markj
Date: Tue Aug 28 15:18:14 2018
New Revision: 338350
URL: https://svnweb.freebsd.org/changeset/base/338350
Log:
Add missing endpwent() and endgrent() calls to nfsuserd(8).
PR: 230937
Submitted by: Peter Eriksson <peter at ifm.liu.se>
Reviewed by: rmacklem
Approved by: re (gjb)
MFC after: 1 week
Modified:
head/usr.sbin/nfsuserd/nfsuserd.c
Modified: head/usr.sbin/nfsuserd/nfsuserd.c
==============================================================================
--- head/usr.sbin/nfsuserd/nfsuserd.c Tue Aug 28 14:53:03 2018 (r338349)
+++ head/usr.sbin/nfsuserd/nfsuserd.c Tue Aug 28 15:18:14 2018 (r338350)
@@ -334,6 +334,7 @@ main(int argc, char *argv[])
#endif
i++;
}
+ endgrent();
/*
* Loop around adding all users.
@@ -382,6 +383,7 @@ main(int argc, char *argv[])
#endif
i++;
}
+ endpwent();
/*
* I should feel guilty for not calling this for all the above exit()
More information about the svn-src-all
mailing list