summary |
tags |
clone url |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
589d913)
SCCS-vsn: usr.sbin/sendmail/src/alias.c 8.22
# include <pwd.h>
#ifndef lint
# include <pwd.h>
#ifndef lint
-static char sccsid[] = "@(#)alias.c 8.21 (Berkeley) %G%";
+static char sccsid[] = "@(#)alias.c 8.22 (Berkeley) %G%";
/* try to lock the source file */
if ((af = fopen(map->map_file, "r+")) == NULL)
{
/* try to lock the source file */
if ((af = fopen(map->map_file, "r+")) == NULL)
{
- if (errno != EACCES || automatic ||
+ if ((errno != EACCES && errno != EROFS) || automatic ||
(af = fopen(map->map_file, "r")) == NULL)
{
int saveerr = errno;
(af = fopen(map->map_file, "r")) == NULL)
{
int saveerr = errno;