SCCS-vsn: sbin/savecore/savecore.c 5.37
#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>
- 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) {