From b69a437d31fc3e189fb170af20ee5ae8a9077e90 Mon Sep 17 00:00:00 2001 From: rwatson Date: Sat, 26 Apr 2003 02:51:03 +0000 Subject: [PATCH] When the tty chown() fails, report a chown() failure rather than a chmod() failure. --- usr.bin/login/login.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c index 3730b877574..11202588b88 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 -- 2.45.2