diff options
author | sheldonh <sheldonh@FreeBSD.org> | 2000-04-13 09:39:29 +0000 |
---|---|---|
committer | sheldonh <sheldonh@FreeBSD.org> | 2000-04-13 09:39:29 +0000 |
commit | 2ae0158f085cf00f299f186fcafe16ac23d89d1f (patch) | |
tree | 45786ff2764960715675840b8007bed3a382116a /usr.bin/login/login.c | |
parent | d4928b4139a958b5a3904db68758babe8c1b5f9a (diff) | |
download | FreeBSD-src-2ae0158f085cf00f299f186fcafe16ac23d89d1f.zip FreeBSD-src-2ae0158f085cf00f299f186fcafe16ac23d89d1f.tar.gz |
Do not issue a warning when chflags() fails with EOPNOTSUPP.
PR: 17875
Submitted by: Bjoern Fischer <bfischer@Techfak.Uni-Bielefeld.DE>
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)) |