allow alias builds from alias text files on read only file systems
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 1 Feb 1994 09:34:37 +0000 (01:34 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 1 Feb 1994 09:34:37 +0000 (01:34 -0800)
SCCS-vsn: usr.sbin/sendmail/src/alias.c 8.22

usr/src/usr.sbin/sendmail/src/alias.c

index 6110090..c845f91 100644 (file)
@@ -10,7 +10,7 @@
 # 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%";
 #endif /* not lint */
 
 
 #endif /* not lint */
 
 
@@ -392,7 +392,7 @@ rebuildaliases(map, automatic)
        /* 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;