mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-13 10:02:38 +00:00
Fix excessive use of parenthesis in previous commit.
Requested by: bde
This commit is contained in:
parent
58af1c5edd
commit
508d9a5b59
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=59621
@ -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))
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user