Package: pmount
Version: 0.9.23-3+b1
Severity: minor
Tags: patch

bash completion for pmount hangs. The problem is in grepping stdin in
line 62 of /etc/bash_completion.d/pmount:

    devices="$( command ls $(grep -v '^[[:space:]]*#' /etc/pmount.allow ) 
$(grep 1 /sys/block/*/removable | sed -e 
's,/sys/block/,/dev/,;s,/removable:1,*,') 2>/dev/null | sort -u | sed -e 
's,\(^/dev/\)\(.*\),\1\2 \2,' ; grep $mdir /proc/mounts | sed -e 
's,.*\($mdir/[^ ]*\).*,\1,' )"

Variable mdir is not set, so «grep $mdir /proc/mounts» expands to
«grep /proc/mounts» where «/proc/mounts» treated as pattern, not file
name. So script blocks until ^C or ^D is pressed.

Fix: replace line with the following to remove this strange grepping:
    devices="$( command ls $(grep -v '^[[:space:]]*#' /etc/pmount.allow ) 
$(grep 1 /sys/block/*/removable | sed -e 
's,/sys/block/,/dev/,;s,/removable:1,*,') 2>/dev/null | sort -u | sed -e 
's,\(^/dev/\)\(.*\),\1\2 \2,' )"

-- System Information:
Debian Release: 8.0
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'testing-updates'), (500, 
'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/1 CPU core)
Locale: LANG=ru_RU.UTF-8, LC_CTYPE=ru_RU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: sysvinit (via /sbin/init)

Versions of packages pmount depends on:
ii  libblkid1  2.25.2-4
ii  libc6      2.19-13

pmount recommends no packages.

Versions of packages pmount suggests:
pn  cryptsetup  <none>

-- Configuration Files:
/etc/bash_completion.d/pmount changed [not included]

-- no debconf information


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to