Package: debianutils
Version: 4.5.1
Severity: normal

Dear Maintainer,

   * What led up to the situation?

After a bit tweaking of my .mkshrc, KSH_VERSION gets exported.

   * What exactly did you do (or not do) that was effective (or
     ineffective)?

I called `/bin/which ls`

   * What was the outcome of this action?

It hanged

   * What outcome did you expect instead?

output '/bin/ls' or like this

It is clear why it happens: /bin/which tests for KSH_VERSION to choose
between 'printf' and 'print'. Unfortunately, if it chooses incorrectly,
'/usr/bin/print' is provided by `mime-support'. In most unfortunate
case, I get fork bomb.

Probably, /bin/which should use /usr/bin/printf unconditionally.

-- System Information:
Debian Release: 8.2
  APT prefers stable
  APT policy: (900, 'stable'), (500, 'stable-updates'), (500, 
'buildd-unstable'), (500, 'oldstable')
Architecture: amd64 (x86_64)

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

Versions of packages debianutils depends on:
ii  libc6           2.19-18+deb8u1
ii  sensible-utils  0.0.9

debianutils recommends no packages.

debianutils suggests no packages.

-- no debconf information

Reply via email to