Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 4 Sep 2018 16:45:08 +0000 (UTC)
From:      Mark Johnston <markj@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r338455 - stable/11/usr.sbin/nfsuserd
Message-ID:  <201809041645.w84Gj88I093482@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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()



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201809041645.w84Gj88I093482>