Source-Changes-HG archive

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

[src/trunk]: src/etc - use "cp" instead of "cp -p", as the files in ${SRC_ETC...



details:   https://anonhg.NetBSD.org/src/rev/f8919f4fbf16
branches:  trunk
changeset: 526172:f8919f4fbf16
user:      lukem <lukem%NetBSD.org@localhost>
date:      Fri Apr 26 16:32:49 2002 +0000

description:
- use "cp" instead of "cp -p", as the files in ${SRC_ETC} might not be owned
  by root
- set umask to 022

diffstat:

 etc/postinstall |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (29 lines):

diff -r 9ab23fd366b1 -r f8919f4fbf16 etc/postinstall
--- a/etc/postinstall   Fri Apr 26 16:24:06 2002 +0000
+++ b/etc/postinstall   Fri Apr 26 16:32:49 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.2 2002/04/26 15:49:09 lukem Exp $
+# $NetBSD: postinstall,v 1.3 2002/04/26 16:32:49 lukem Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -127,7 +127,7 @@
                if [ "${_op}" = "check" ]; then
                        msg ${error}
                        failed=1
-               elif ! cp -p ${fs} ${fd}; then
+               elif ! cp ${fs} ${fd}; then
                        msg "Can't copy ${fs} to ${fd}"
                        failed=1
                else
@@ -443,7 +443,7 @@
 SCRATCHDIR=$( mktemp -d /tmp/_postinstall.XXXXXX ) ||
     err 1 "Can't create scratch directory"
 trap "/bin/rm -rf $SCRATCHDIR ; exit 0" 0 1 2 3 15     # EXIT HUP INT QUIT TERM
-
+umask 022
 
 main $*
 exit 0



Home | Main Index | Thread Index | Old Index