Package: cryptsetup
Version: 2:1.0.6+20090405.svn49-1
Severity: normal

Hello,

Using an aliased ls makes cryptsetup bash completion to fail.
I provide a tested patch to use command builtins to call ls.

Regards.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (90, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.30+hati.1 (SMP w/2 CPU cores; PREEMPT)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages cryptsetup depends on:
ii  dmsetup                      2:1.02.30-3 The Linux Kernel Device Mapper use
ii  libc6                        2.9-17      GNU C Library: Shared libraries
ii  libdevmapper1.02.1           2:1.02.30-3 The Linux Kernel Device Mapper use
ii  libpopt0                     1.14-4      lib for parsing cmdline parameters
ii  libuuid1                     1.41.6-1    Universally Unique ID library

cryptsetup recommends no packages.

Versions of packages cryptsetup suggests:
pn  dosfstools                    <none>     (no description available)
pn  initramfs-tools | linux-initr <none>     (no description available)
ii  udev                          0.141-1    /dev/ and hotplug management daemo

-- no debconf information
--- cryptsetup.orig     2009-07-01 21:49:07.000000000 +0200
+++ cryptsetup  2009-07-01 21:48:40.000000000 +0200
@@ -69,7 +69,7 @@
 
        "reload"|"remove"|"resize"|"status"|"luksClose")
            # action <name>
-           MAPPINGS="$(ls /dev/mapper | fgrep --invert-match control)"
+           MAPPINGS="$(command ls /dev/mapper | fgrep --invert-match control)"
            OLDIFS="$IFS"
            IFS="
 "
@@ -81,7 +81,7 @@
            # luksDelKey <name> <key slot number>
            if [ ${COMP_WORDS[COMP_CWORD-1]} == "luksDelKey" ] ; then
                # Get name
-               MAPPINGS="$(ls /dev/mapper | fgrep --invert-match control)"
+               MAPPINGS="$(command ls /dev/mapper | fgrep --invert-match 
control)"
                OLDIFS="$IFS"
                IFS="
 "
@@ -94,7 +94,7 @@
            # action <name> [<key file>]
            if [ ${COMP_WORDS[COMP_CWORD-1]} == "luksFormat" ] ; then
                # Get name
-               MAPPINGS="$(ls /dev/mapper | fgrep --invert-match control)"
+               MAPPINGS="$(command ls /dev/mapper | fgrep --invert-match 
control)"
                OLDIFS="$IFS"
                IFS="
 "

Reply via email to