diff options
author | 2008-09-04 11:57:56 +0000 | |
---|---|---|
committer | 2008-09-04 11:57:56 +0000 | |
commit | dd26a91474977400e63a1e550c20864d9c87ca16 (patch) | |
tree | 567c46a1a0c73cd333fd0160f63ceea0788e895a | |
parent | Check for the correct ioctl failure case and reflect that (diff) | |
download | wireguard-openbsd-dd26a91474977400e63a1e550c20864d9c87ca16.tar.xz wireguard-openbsd-dd26a91474977400e63a1e550c20864d9c87ca16.zip |
Use & not && to mask bits.
Sendmail folks have been notified and are fixing this for
the next release.
-rw-r--r-- | gnu/usr.sbin/sendmail/sendmail/map.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gnu/usr.sbin/sendmail/sendmail/map.c b/gnu/usr.sbin/sendmail/sendmail/map.c index 79161067766..0f4eda0df8f 100644 --- a/gnu/usr.sbin/sendmail/sendmail/map.c +++ b/gnu/usr.sbin/sendmail/sendmail/map.c @@ -1710,7 +1710,7 @@ lockdbm: { map->map_mflags |= MF_OPEN; map->map_pid = CurrentPid; - if ((omode && O_ACCMODE) == O_RDWR) + if ((omode & O_ACCMODE) == O_RDWR) map->map_mflags |= MF_WRITABLE; goto lockdbm; } @@ -2359,7 +2359,7 @@ db_map_lookup(map, name, av, statp) { map->map_mflags |= MF_OPEN; map->map_pid = CurrentPid; - if ((omode && O_ACCMODE) == O_RDWR) + if ((omode & O_ACCMODE) == O_RDWR) map->map_mflags |= MF_WRITABLE; db = (DB *) map->map_db2; goto lockdb; |