mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-15 10:17:20 +00:00
Small tweak: don't try closing /etc/netgroup if we haven't opened it yet.
This commit is contained in:
parent
4a8128ffc7
commit
de32dbbd5d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=12585
@ -191,7 +191,8 @@ setnetgrent(group)
|
||||
*/
|
||||
if (_use_only_yp && _yp_innetgr) {
|
||||
/* dohw! */
|
||||
fclose(netf);
|
||||
if (netf != NULL)
|
||||
fclose(netf);
|
||||
return;
|
||||
}
|
||||
#else
|
||||
|
Loading…
Reference in New Issue
Block a user