Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/i386/stand/installboot install /boot -r-------- for...



details:   https://anonhg.NetBSD.org/src/rev/ba6fa58b67b0
branches:  trunk
changeset: 476253:ba6fa58b67b0
user:      drochner <drochner%NetBSD.org@localhost>
date:      Fri Sep 10 16:41:10 1999 +0000

description:
install /boot -r-------- for security reasons

diffstat:

 sys/arch/i386/stand/installboot/bootblks.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (18 lines):

diff -r 194f99677611 -r ba6fa58b67b0 sys/arch/i386/stand/installboot/bootblks.c
--- a/sys/arch/i386/stand/installboot/bootblks.c        Fri Sep 10 16:38:46 1999 +0000
+++ b/sys/arch/i386/stand/installboot/bootblks.c        Fri Sep 10 16:41:10 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: bootblks.c,v 1.3 1998/07/28 20:10:54 drochner Exp $ */
+/* $NetBSD: bootblks.c,v 1.4 1999/09/10 16:41:10 drochner Exp $ */
 
 /*
  * Copyright (c) 1996
@@ -79,7 +79,7 @@
                                       bootblkpath, backuppath);
                havebackup = 1;
        }
-       fd = open(bootblkpath, O_RDWR | O_CREAT | O_EXCL, 0444);
+       fd = open(bootblkpath, O_RDWR | O_CREAT | O_EXCL, 0400);
        if (fd < 0) {
                warn("open %s", bootblkpath);
                goto out;



Home | Main Index | Thread Index | Old Index