summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authorrwatson <rwatson@FreeBSD.org>2003-04-26 02:51:03 +0000
committerrwatson <rwatson@FreeBSD.org>2003-04-26 02:51:03 +0000
commitb69a437d31fc3e189fb170af20ee5ae8a9077e90 (patch)
tree9138121e1c2ea16de71a87661efc4690cded021c /usr.bin/login
parentc54b661d3c20e60c2092955110f58053698156e1 (diff)
downloadFreeBSD-src-b69a437d31fc3e189fb170af20ee5ae8a9077e90.zip
FreeBSD-src-b69a437d31fc3e189fb170af20ee5ae8a9077e90.tar.gz
When the tty chown() fails, report a chown() failure rather than a
chmod() failure.
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 3730b87..1120258 100644
--- a/usr.bin/login/login.c
+++ b/usr.bin/login/login.c
@@ -426,7 +426,7 @@ main(int argc, char *argv[])
if (ttyn != tname && chown(ttyn, pwd->pw_uid,
(gr = getgrnam(TTYGRPNAME)) ? gr->gr_gid : pwd->pw_gid))
if (errno != EROFS)
- syslog(LOG_ERR, "chmod(%s): %m", ttyn);
+ syslog(LOG_ERR, "chown(%s): %m", ttyn);
/*
* Exclude cons/vt/ptys only, assume dialup otherwise
OpenPOWER on IntegriCloud