diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2008-09-04 11:57:57 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2008-09-04 11:57:57 +0000 |
commit | e6569cadf0f42c4d3f13ba36e507fb13f88a5599 (patch) | |
tree | fd193f3241cc91201e6865298d9cfcd4b8df3671 /gnu | |
parent | 635d7d444cbf7a1da0b939c3f9b82b2ede23be33 (diff) |
Use & not && to mask bits.
Sendmail folks have been notified and are fixing this for
the next release.
Diffstat (limited to 'gnu')
-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; |