reasonable mode for vmunix
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 27 Feb 1993 06:42:45 +0000 (22:42 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Sat, 27 Feb 1993 06:42:45 +0000 (22:42 -0800)
SCCS-vsn: sbin/savecore/savecore.c 5.37

usr/src/sbin/savecore/savecore.c

index fb64d5b..3c5a8cf 100644 (file)
@@ -12,7 +12,7 @@ char copyright[] =
 #endif /* not lint */
 
 #ifndef lint
 #endif /* not lint */
 
 #ifndef lint
-static char sccsid[] = "@(#)savecore.c 5.36 (Berkeley) %G%";
+static char sccsid[] = "@(#)savecore.c 5.37 (Berkeley) %G%";
 #endif /* not lint */
 
 #include <sys/param.h>
 #endif /* not lint */
 
 #include <sys/param.h>
@@ -367,7 +367,7 @@ err2:                       syslog(LOG_WARNING,
                        exit(1);
                }
        } else
                        exit(1);
                }
        } else
-               ofd = Create(path, S_IRUSR | S_IWUSR);
+               ofd = Create(path, S_IRUSR | S_IWUSR | S_IRGRP | S_IROTH);
        syslog(LOG_NOTICE, "writing %skernel to %s",
            compress ? "compressed " : "", path);
        while ((nr = read(ifd, buf, sizeof(buf))) > 0) {
        syslog(LOG_NOTICE, "writing %skernel to %s",
            compress ? "compressed " : "", path);
        while ((nr = read(ifd, buf, sizeof(buf))) > 0) {