[Pkg-zsh-commits] [zsh] 01/02: check-for-dev-tty-before-using-it.patch: Don't descend into /dev/ subdirectories

Axel Beckert abe at deuxchevaux.org
Mon Sep 23 21:12:09 UTC 2013


This is an automated email from the git hooks/post-receive script.

abe pushed a commit to branch debian
in repository zsh.

commit f7cf9ffb47eb91d64fd6fe0f32fd5d234643496e
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Mon Sep 23 22:42:26 2013 +0200

    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/
---
 debian/patches/check-for-dev-tty-before-using-it.patch |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 92b0e3a..c12f30c 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

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/zsh.git



More information about the Pkg-zsh-commits mailing list