summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAxel Beckert <abe@deuxchevaux.org>2013-09-23 22:42:26 +0200
committerAxel Beckert <abe@deuxchevaux.org>2013-09-23 22:42:26 +0200
commitf7cf9ffb47eb91d64fd6fe0f32fd5d234643496e (patch)
tree6506fda74d522a94bdd4248617bb30f19bd6cc74
parente19ee43ae29e7c223c1c18d75ac9b7f02f4318e2 (diff)
downloadzsh-f7cf9ffb47eb91d64fd6fe0f32fd5d234643496e.tar.gz
zsh-f7cf9ffb47eb91d64fd6fe0f32fd5d234643496e.zip
check-for-dev-tty-before-using-it.patch: Don't descend into /dev/ subdirectories
find trying to delve into subdirectories of /dev/ it has no access to is not necessary, but may cause FTBFS, e.g. if VirtualBox is installed: drwxr-x--- 4 root vboxusers 80 Sep 3 23:44 /dev/vboxusb/
-rw-r--r--debian/patches/check-for-dev-tty-before-using-it.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/debian/patches/check-for-dev-tty-before-using-it.patch b/debian/patches/check-for-dev-tty-before-using-it.patch
index 92b0e3a87..c12f30c91 100644
--- a/debian/patches/check-for-dev-tty-before-using-it.patch
+++ b/debian/patches/check-for-dev-tty-before-using-it.patch
@@ -15,7 +15,7 @@ Index: zsh/Test/C02cond.ztst
- char=/dev/tty
- [[ -c $char && ! -c $zerolength ]]
+ # Hardcoded /dev/tty as necessary for Cygwin may fail on Hurd
-+ tty=$(find /dev/ -name 'tty*' -type c -print)
++ tty=$(find /dev/ -nowarn -maxdepth 1 -name 'tty*' -type c -print)
+ if [[ -n $tty ]]; then
+ [[ -c $tty[(f)1] && ! -c $zerolength ]]
+ else