Source-Changes-HG archive

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

[src/trunk]: src/usr.sbin/postinstall Add ${DEST_DIR} prefix to check target ...



details:   https://anonhg.NetBSD.org/src/rev/ed375b15b30d
branches:  trunk
changeset: 459755:ed375b15b30d
user:      nakayama <nakayama%NetBSD.org@localhost>
date:      Tue Sep 24 13:27:39 2019 +0000

description:
Add ${DEST_DIR} prefix to check target directory not host directory.

diffstat:

 usr.sbin/postinstall/postinstall.in |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 8d51cf93b69a -r ed375b15b30d usr.sbin/postinstall/postinstall.in
--- a/usr.sbin/postinstall/postinstall.in       Tue Sep 24 11:31:06 2019 +0000
+++ b/usr.sbin/postinstall/postinstall.in       Tue Sep 24 13:27:39 2019 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: postinstall.in,v 1.6 2019/09/12 21:56:55 uwe Exp $
+# $NetBSD: postinstall.in,v 1.7 2019/09/24 13:27:39 nakayama Exp $
 #
 # Copyright (c) 2002-2015 The NetBSD Foundation, Inc.
 # All rights reserved.
@@ -2254,7 +2254,7 @@
 getcompatlibdirs() {
        for i in $(getarchsubdirs); do
                echo $i 1>&2
-               if [ -d /usr/lib/$i ]; then
+               if [ -d "${DEST_DIR}/usr/lib/$i" ]; then
                        echo /usr/lib/$i
                fi
        done



Home | Main Index | Thread Index | Old Index