diff options
author | rillig <rillig@pkgsrc.org> | 2019-05-07 19:54:46 +0000 |
---|---|---|
committer | rillig <rillig@pkgsrc.org> | 2019-05-07 19:54:46 +0000 |
commit | 1bc002525f493fa100d9578f6681c2605ff7b1d4 (patch) | |
tree | 8126851ff1b1bd8b7cd4f512a4d73503111e0a30 /bootstrap | |
parent | e69a8e6b9a2ec1fe26f4213b89531a5debabf312 (diff) | |
download | pkgsrc-1bc002525f493fa100d9578f6681c2605ff7b1d4.tar.gz |
bootstrap: fix endless when checking nonexisting directory
./bootstrap --prefix=/nonexisting had run into an endless loop.
Diffstat (limited to 'bootstrap')
-rwxr-xr-x | bootstrap/bootstrap | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap index 239f112ad17..3cda587e39e 100755 --- a/bootstrap/bootstrap +++ b/bootstrap/bootstrap @@ -1,6 +1,6 @@ #! /bin/sh -# $NetBSD: bootstrap,v 1.264 2019/05/03 13:26:34 jperkin Exp $ +# $NetBSD: bootstrap,v 1.265 2019/05/07 19:54:46 rillig Exp $ # # Copyright (c) 2001-2011 Alistair Crooks <agc@NetBSD.org> # All rights reserved. @@ -363,6 +363,7 @@ checkarg_no_symlink_path() _dir=$1 while [ ! -d "$_dir" ]; do _dir=${_dir%/*} + [ "$_dir" ] || _dir="/" done _realdir=`cd "$_dir" && exec pwd` |