Correct two error messages to match the failure they are reporting.

MFC after:	1 week
This commit is contained in:
Gavin Atkinson 2010-08-08 16:20:32 +00:00
parent 15ec942da8
commit 84f583c47e

View File

@ -538,10 +538,10 @@ main(argc, argv)
* devices, we just clear them.
*/
if (chflags(ttyn, 0) && errno != EOPNOTSUPP)
syslog(LOG_ERR, "chmod(%s): %m", ttyn);
syslog(LOG_ERR, "chflags(%s): %m", ttyn);
if (chown(ttyn, pwd->pw_uid,
(gr = getgrnam(TTYGRPNAME)) ? gr->gr_gid : pwd->pw_gid))
syslog(LOG_ERR, "chmod(%s): %m", ttyn);
syslog(LOG_ERR, "chown(%s): %m", ttyn);
/*