Fix excessive use of parenthesis in previous commit.

Requested by:	bde
This commit is contained in:
Sheldon Hearn 2000-04-25 08:59:51 +00:00
parent 58af1c5edd
commit 508d9a5b59
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59621
2 changed files with 2 additions and 2 deletions

View File

@ -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))

View File

@ -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);