diff options
author | rwatson <rwatson@FreeBSD.org> | 2003-04-26 02:51:03 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2003-04-26 02:51:03 +0000 |
commit | b69a437d31fc3e189fb170af20ee5ae8a9077e90 (patch) | |
tree | 9138121e1c2ea16de71a87661efc4690cded021c /usr.bin/login | |
parent | c54b661d3c20e60c2092955110f58053698156e1 (diff) | |
download | FreeBSD-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.c | 2 |
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 |