summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/patch-wrapper.in4
1 files changed, 4 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)