[Pkg-mc-devel] Bug#703741: mc can delete anything without asking

Josef Kufner jk at frozen-doe.net
Sat Mar 23 00:05:41 UTC 2013

Package: mc
Version: 3:4.8.3-10
Severity: important

Dear Maintainer,
mc can delete files or execute wierd commands without asking.

How to reproduce:

  1. mkdir foo
  2. cd foo
  3. echo hello world > bar
  4. echo something else > other-file
  5. mc
  6. ctrl+o
  7. type "rm -fr bar ", do not press enter
  8. ctrl+o, ... hey, how was that file named?
  9. pres enter to go to parent directory
  10. realize mistake, pres enter again and look at the name of 'other-file'
  11. ctrl+o
  12. ohh...

I never confirmed the rm command, but file 'bar' is gone...

When mc changes directory in shell, it executes unfinished command. It can
contain anything.

Expected behaviour: Just keep it unchanged and do not change the current
directory, when there is unfinished command.

-- System Information:
Debian Release: 7.0
  APT prefers unstable
  APT policy: (700, 'unstable'), (600, 'testing'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 3.7-trunk-686-pae (SMP w/2 CPU cores)
Locale: LANG=cs_CZ.UTF-8, LC_CTYPE=cs_CZ.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages mc depends on:
ii  e2fslibs      1.42.5-1.1
ii  libc6         2.13-38
ii  libcomerr2    1.42.5-1.1
ii  libglib2.0-0  2.34.3-1
ii  libgpm2       1.20.4-6
ii  libslang2     2.2.4-15
ii  mc-data       3:4.8.3-10

Versions of packages mc recommends:
ii  mime-support  3.52-2
ii  perl          5.14.2-20
ii  unzip         6.0-9

Versions of packages mc suggests:
ii  arj                  3.10.22-10
ii  bzip2                1.0.6-4
pn  catdvi               <none>
pn  dbview               <none>
pn  djvulibre-bin        <none>
ii  file                 1:5.11-2.1
ii  gv [pdf-viewer]      1:3.7.3-1
ii  imagemagick          8:
ii  lynx                 2.8.8dev.15-2
ii  odt2txt              0.4+git20100620-1+b1
ii  okular [pdf-viewer]  4:4.8.4-3
ii  python               2.7.3-4
pn  python-boto          <none>
pn  python-tz            <none>
ii  zip                  3.0-7

-- no debconf information

More information about the Pkg-mc-devel mailing list