]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
expand checkuser() to support the propagation of error codes back to
authorcsjp <csjp@FreeBSD.org>
Mon, 3 Jan 2011 21:28:12 +0000 (21:28 +0000)
committercsjp <csjp@FreeBSD.org>
Mon, 3 Jan 2011 21:28:12 +0000 (21:28 +0000)
commit48ae57efdbff9d38effbc1f0dfb939c0ed0e68a9
tree629ddbcda24e1842b7355bd4451398e70e42b6b1
parent53f27d6094f8d165bcafb24f7a049f6b3cf2a986
expand checkuser() to support the propagation of error codes back to
the caller.  Currently, checkuser() does not differentiate between the
failure to open the file and the absence of a user in the file.  Check
to see if there was an error opening the file.  If there are any errors,
terminate the connection.  Currently, the only exception to this rule
is ENOENT, since there is nothing that says the /etc/ftpuser
and /etc/ftpchroot has to exist.

MFC after: 3 weeks
libexec/ftpd/ftpd.c