pkgsrc-Changes archive

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

CVS commit: pkgsrc/bootstrap



Module Name:    pkgsrc
Committed By:   rillig
Date:           Tue May  7 19:54:46 UTC 2019

Modified Files:
        pkgsrc/bootstrap: bootstrap

Log Message:
bootstrap: fix endless when checking nonexisting directory

./bootstrap --prefix=/nonexisting had run into an endless loop.


To generate a diff of this commit:
cvs rdiff -u -r1.264 -r1.265 pkgsrc/bootstrap/bootstrap

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

Modified files:

Index: pkgsrc/bootstrap/bootstrap
diff -u pkgsrc/bootstrap/bootstrap:1.264 pkgsrc/bootstrap/bootstrap:1.265
--- pkgsrc/bootstrap/bootstrap:1.264    Fri May  3 13:26:34 2019
+++ pkgsrc/bootstrap/bootstrap  Tue May  7 19:54:46 2019
@@ -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@localhost>
 # 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`



Home | Main Index | Thread Index | Old Index