From 59c5f227360208ab1e162d5e6ff239cb3ba95ff8 Mon Sep 17 00:00:00 2001 From: dancer Date: Sat, 4 Oct 2003 15:14:43 +0000 Subject: + + * auditing of readlink occurrences + * Bug fix: "pbuilder: Please deal with nonexistent --buildplace + directory", reported from Artur R. Czechowski (Closes: #213890). + --- pbuilder-user-mode-linux | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) (limited to 'pbuilder-user-mode-linux') diff --git a/pbuilder-user-mode-linux b/pbuilder-user-mode-linux index 9e33e51..1bfc624 100755 --- a/pbuilder-user-mode-linux +++ b/pbuilder-user-mode-linux @@ -211,10 +211,20 @@ while [ -n "$1" ] ; do shift; shift;; --buildresult) # ignore buildresult - UML_BUILDRESULT=$(readlink -f "$2") + if [ -d "$2" ]; then + UML_BUILDRESULT=$(readlink -f "$2") + else + echo "E: Directory $d does not exist" >&2 + exit 1 + fi shift; shift;; --buildplace) - BUILDPLACE=$(readlink -f "$2") + if [ -d "$2" ]; then + BUILDPLACE=$(readlink -f "$2") + else + echo "E: Directory $d does not exist" >&2 + exit 1 + fi shift; shift;; --logfile) exec > "$2"; -- cgit v1.2.3