Source-Changes-HG archive

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

[src/netbsd-1-6]: src/etc Pull up revision 1.18 (requested by lukem in ticket...



details:   https://anonhg.NetBSD.org/src/rev/7109f24aa571
branches:  netbsd-1-6
changeset: 527872:7109f24aa571
user:      lukem <lukem%NetBSD.org@localhost>
date:      Tue Jun 11 08:49:55 2002 +0000

description:
Pull up revision 1.18 (requested by lukem in ticket #242):
Don't run the compare_dir() checks if the src dir doesn't exist.
Suggested by atatat@ in private email.

diffstat:

 etc/postinstall |  7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diffs (30 lines):

diff -r c62a0c9e6b23 -r 7109f24aa571 etc/postinstall
--- a/etc/postinstall   Tue Jun 11 02:02:16 2002 +0000
+++ b/etc/postinstall   Tue Jun 11 08:49:55 2002 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall,v 1.16.2.1 2002/05/27 00:34:59 lukem Exp $
+# $NetBSD: postinstall,v 1.16.2.2 2002/06/11 08:49:55 lukem Exp $
 #
 # Copyright (c) 2002 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -48,7 +48,6 @@
 #      - de* -> tlp* migration (/etc/ifconfig.de*, $ifconfig_de*,
 #        dhclient.conf, ...) ?
 #      - support quiet/verbose mode ?
-#      - postfix
 #      - check obsolete file lists -- need to remove non obsolete files from
 #        the sets first.
 #
@@ -166,6 +165,10 @@
        shift 4
        _files=$*
 
+       if [ ! -d "${_src}" ]; then
+               msg "${_src} is not a directory; skipping check"
+               return 1
+       fi
        check_dir ${_op} ${_dest} 755 || return 1
 
        _cmpdir_rv=0



Home | Main Index | Thread Index | Old Index