does not handle filenames whose name begins with a dash properly
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
pbzip2 |
New
|
Undecided
|
Unassigned |
Bug Description
Reported From: Steve Ward planet36 [at] gmail <dot> com
The following example attempts to compress (using various programs) a file whose name begins with a dash. pbzip2 has trouble with this, but the others are fine.
$ cp -L -- /usr/share/
$ bzip2 -c -- -foo > bar1
$ lbzip2 -c -- -foo > bar2
$ pbzip2 -c -- -foo > bar3
(waits for input)
$ pbzip2 -c -- ./-foo > bar3
(works)
$ uname --all
Linux dev8 2.6.38-8-generic #42-Ubuntu SMP Mon Apr 11 03:31:24 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux
$ bzip2 --version
bzip2, a block-sorting file compressor. Version 1.0.5, 10-Dec-2007.
...
$ lbzip2 --version
lbzip2: Parallel bzip2 utility.
Copyright (C) 2008, 2009, 2010 Laszlo Ersek.
Released under the GNU GPLv2+.
Version 0.23.
...
$ pbzip2 --version
Parallel BZIP2 v1.1.1 - by: Jeff Gilchrist [http://
[Apr. 17, 2010] (uses libbzip2 by Julian Seward)
Major contributions: Yavor Nikolov <email address hidden>
Steve
Here's the equivalent Debian bug. /bugs.debian. org/cgi- bin/bugreport. cgi?bug= 700682
https:/