Module Name:    src
Committed By:   nakayama
Date:           Tue Sep 24 13:27:39 UTC 2019

Modified Files:
        src/usr.sbin/postinstall: postinstall.in

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


To generate a diff of this commit:
cvs rdiff -u -r1.6 -r1.7 src/usr.sbin/postinstall/postinstall.in

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/usr.sbin/postinstall/postinstall.in
diff -u src/usr.sbin/postinstall/postinstall.in:1.6 src/usr.sbin/postinstall/postinstall.in:1.7
--- src/usr.sbin/postinstall/postinstall.in:1.6	Thu Sep 12 21:56:55 2019
+++ src/usr.sbin/postinstall/postinstall.in	Tue Sep 24 13:27:39 2019
@@ -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 @@ getarchsubdirs() {
 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

Reply via email to