summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/patch-wrapper.in4
-rw-r--r--quilt.changes7
2 files changed, 11 insertions, 0 deletions
diff --git a/bin/patch-wrapper.in b/bin/patch-wrapper.in
index e992448..358856a 100755
--- a/bin/patch-wrapper.in
+++ b/bin/patch-wrapper.in
@@ -171,6 +171,10 @@ then
if [ -n "$opt_input" ]
then
patch=$opt_input
+ elif [ ! -e /proc/self ]
+ then
+ echo "patch-wrapper: /proc not mounted!" >&2
+ exit 1
elif [ -e /proc/self/fd/0 ]
then
patch=$(readlink /proc/self/fd/0)
diff --git a/quilt.changes b/quilt.changes
index b63bbbf..1b203b2 100644
--- a/quilt.changes
+++ b/quilt.changes
@@ -1,3 +1,10 @@
+Sat Dec 21 17:00:57 CET 2013 - mquinson@debian.org
+
+- bin/patch-wrapper.in: Die with an informative message when /proc is
+ not mounted, as it is often the case within a chroot. /proc is
+ mandated to to retrieve the cwd and other informations. Without this
+ patch, the script was dying with a cryptic message in this situation.
+
-------------------------------------------------------------------
Sun Dec 8 23:32:16 CET 2013 - mquinson@debian.org