svn commit: r294183 - head/usr.sbin/jail
Jamie Gritton
jamie at FreeBSD.org
Sat Jan 16 18:13:29 UTC 2016
Author: jamie
Date: Sat Jan 16 18:13:28 2016
New Revision: 294183
URL: https://svnweb.freebsd.org/changeset/base/294183
Log:
Clear errno before calling getpw*.
Modified:
head/usr.sbin/jail/command.c
Modified: head/usr.sbin/jail/command.c
==============================================================================
--- head/usr.sbin/jail/command.c Sat Jan 16 18:11:17 2016 (r294182)
+++ head/usr.sbin/jail/command.c Sat Jan 16 18:13:28 2016 (r294183)
@@ -877,6 +877,7 @@ get_user_info(struct cfjail *j, const ch
{
const struct passwd *pwd;
+ errno = 0;
*pwdp = pwd = username ? getpwnam(username) : getpwuid(getuid());
if (pwd == NULL) {
if (errno)
More information about the svn-src-all
mailing list