summaryrefslogtreecommitdiffstats
path: root/usr.bin/login
diff options
context:
space:
mode:
authorsheldonh <sheldonh@FreeBSD.org>2000-04-25 08:59:51 +0000
committersheldonh <sheldonh@FreeBSD.org>2000-04-25 08:59:51 +0000
commit7dbc44ea9253465e587b32df22ba4bef4b564e19 (patch)
tree3f9fac606ae9fb81e461b691f821cf4e9450018a /usr.bin/login
parent349f5760a267d1ca4eb2c1283c054269a8b31365 (diff)
downloadFreeBSD-src-7dbc44ea9253465e587b32df22ba4bef4b564e19.zip
FreeBSD-src-7dbc44ea9253465e587b32df22ba4bef4b564e19.tar.gz
Fix excessive use of parenthesis in previous commit.
Requested by: bde
Diffstat (limited to 'usr.bin/login')
-rw-r--r--usr.bin/login/login.c2
-rw-r--r--usr.bin/login/login_fbtab.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/login/login.c b/usr.bin/login/login.c
index 2a0faaf..e6dc807 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) && (errno != EOPNOTSUPP))
+ 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))
diff --git a/usr.bin/login/login_fbtab.c b/usr.bin/login/login_fbtab.c
index ab718cd..846033c 100644
--- a/usr.bin/login/login_fbtab.c
+++ b/usr.bin/login/login_fbtab.c
@@ -134,7 +134,7 @@ gid_t gid;
if (strcmp("/*", path + pathlen - 2) != 0) {
/* clear flags of the device */
- if (chflags(path, 0) && (errno != ENOENT) && (errno != EOPNOTSUPP))
+ if (chflags(path, 0) && errno != ENOENT && errno != EOPNOTSUPP)
syslog(LOG_ERR, "%s: chflags(%s): %m", table, path);
if (chmod(path, mask) && errno != ENOENT)
syslog(LOG_ERR, "%s: chmod(%s): %m", table, path);
OpenPOWER on IntegriCloud