Correct two error messages to match the failure they are reporting.
MFC after: 1 week
This commit is contained in:
parent
15ec942da8
commit
84f583c47e
@ -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);
|
||||
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user