does not handle filenames whose name begins with a dash properly

Bug #778723 reported by Jeff Gilchrist
10
This bug affects 1 person
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/dict/words -foo

$ 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://compression.ca]
[Apr. 17, 2010] (uses libbzip2 by Julian Seward)
Major contributions: Yavor Nikolov <email address hidden>

Steve

Revision history for this message
Steve Ward (planet36) wrote :
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.