aboutsummaryrefslogtreecommitdiff
path: root/pbuilder-user-mode-linux
diff options
context:
space:
mode:
authordancer <dancer>2003-10-04 15:14:43 +0000
committerdancer <dancer>2003-10-04 15:14:43 +0000
commit59c5f227360208ab1e162d5e6ff239cb3ba95ff8 (patch)
tree7085946710daddd3940a42578c2936f220adaf66 /pbuilder-user-mode-linux
parent63c62cc39a66c5e7adc6f5dcc7f6e91572ecd5fe (diff)
downloadpbuilder-59c5f227360208ab1e162d5e6ff239cb3ba95ff8.tar
pbuilder-59c5f227360208ab1e162d5e6ff239cb3ba95ff8.tar.gz
+
+ * auditing of readlink occurrences + * Bug fix: "pbuilder: Please deal with nonexistent --buildplace + directory", reported from Artur R. Czechowski (Closes: #213890). +
Diffstat (limited to 'pbuilder-user-mode-linux')
-rwxr-xr-xpbuilder-user-mode-linux14
1 files changed, 12 insertions, 2 deletions
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";