diff options
Diffstat (limited to 'usr.bin/login/login.c')
-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 c0f6792..2a0faaf 100644 --- a/usr.bin/login/login.c +++ b/usr.bin/login/login.c @@ -493,7 +493,7 @@ main(argc, argv) * Since it isn't clear that flags are useful on character * devices, we just clear them. */ - if (chflags(ttyn, 0)) + if (chflags(ttyn, 0) && (errno != EOPNOTSUPP)) syslog(LOG_ERR, "chmod(%s): %m", ttyn); if (chown(ttyn, pwd->pw_uid, (gr = getgrnam(TTYGRPNAME)) ? gr->gr_gid : pwd->pw_gid)) |