summaryrefslogtreecommitdiff
path: root/debian/patches/check-for-dev-tty-before-using-it.patch
diff options
context:
space:
mode:
Diffstat (limited to 'debian/patches/check-for-dev-tty-before-using-it.patch')
-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