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/83063d4b3f90
branches:  trunk
changeset: 965612:83063d4b3f90
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 ed57f0c95673 -r 83063d4b3f90 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