Author: markj
Date: Tue Sep  4 16:45:08 2018
New Revision: 338455
URL: https://svnweb.freebsd.org/changeset/base/338455

Log:
  MFC r338350:
  Add missing endpwent() and endgrent() calls to nfsuserd(8).
  
  PR:   230937

Modified:
  stable/11/usr.sbin/nfsuserd/nfsuserd.c
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/usr.sbin/nfsuserd/nfsuserd.c
==============================================================================
--- stable/11/usr.sbin/nfsuserd/nfsuserd.c      Tue Sep  4 15:48:13 2018        
(r338454)
+++ stable/11/usr.sbin/nfsuserd/nfsuserd.c      Tue Sep  4 16:45:08 2018        
(r338455)
@@ -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()
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "[email protected]"

Reply via email to