summaryrefslogtreecommitdiff
path: root/bootstrap/bootstrap
diff options
context:
space:
mode:
authorjoerg <joerg>2010-08-13 18:57:36 +0000
committerjoerg <joerg>2010-08-13 18:57:36 +0000
commit6c182a4cc752cc93a58012444b195918c77deabf (patch)
tree61f7857fb2bb367a99c81032820390b89581f50e /bootstrap/bootstrap
parentd98a12871f7cdd15dca1d3f681a6bf6244c7a290 (diff)
downloadpkgsrc-6c182a4cc752cc93a58012444b195918c77deabf.tar.gz
Don't allow a prefix or other directory ending in /. Adresses PR 43754.
Diffstat (limited to 'bootstrap/bootstrap')
-rwxr-xr-xbootstrap/bootstrap3
1 files changed, 2 insertions, 1 deletions
diff --git a/bootstrap/bootstrap b/bootstrap/bootstrap
index 21bd8e06b55..ecfda6d9e2e 100755
--- a/bootstrap/bootstrap
+++ b/bootstrap/bootstrap
@@ -1,6 +1,6 @@
#! /bin/sh
-# $NetBSD: bootstrap,v 1.157 2010/03/19 14:11:11 seanb Exp $
+# $NetBSD: bootstrap,v 1.158 2010/08/13 18:57:36 joerg Exp $
#
#
# Copyright (c) 2001-2002 Alistair G. Crooks. All rights reserved.
@@ -316,6 +316,7 @@ checkarg_sane_absolute_path() {
"") ;; # the default value will be used.
*[!-A-Za-z0-9_./]*)
die "ERROR: Invalid characters in path $1 (from $2)." ;;
+ */) die "ERROR: The argument to $2 must not end in /." ;;
/*) ;;
*) die "ERROR: The argument to $2 must be an absolute path." ;;
esac