After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 326810 - file-roller escaping issue with '#' by example
file-roller escaping issue with '#' by example
Status: RESOLVED FIXED
Product: file-roller
Classification: Applications
Component: general
2.13.x
Other Linux
: Normal normal
: ---
Assigned To: Paolo Bacchilega
file-roller-maint
Depends on:
Blocks:
 
 
Reported: 2006-01-13 10:00 UTC by Sebastien Bacher
Modified: 2006-01-14 14:00 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Sebastien Bacher 2006-01-13 10:00:35 UTC
This bug has been described on https://bugzilla.ubuntu.com/show_bug.cgi?id=22167

"When extracting a .bz2 file with a '#' character in its name, file-roller will
extract it to the wrong name.  It will add a backslash before the '#'.  When
file-roller uses an external application to open the extracted file, it tells it
the name without the backslash, so the external application can't find it.

  $ date > 'the#date.txt'; bzip2 'the#date.txt'; file-roller 'the#date.txt.bz2'

file-roller will show the file in the archive as "the#date.txt" correctly.  But
click on the file to open it in gedit and gedit won't be able to find it.  gedit
won't complain, but it won't show the file contents either.


The same happens with .gz files, but only if the file was gzipped from standard
input, and so doesn't contain a record of its original name.

First I make a .gz file by zipping a file on disk.  The file has a '#' in its
name, but is extracted correctly:

  $ rm *; date > 'the#date'; gzip *; file-roller -e . *.gz; rm *.gz; ls -l *date*
  -rw-r--r-- 1 chris chris 29 2006-01-09 06:12 the#date

But here I make a .gz file by zipping standard input.  The extracted file has a
'\' in its name that shouldn't be there (and what's that [0] that got printed to
stdout during the extraction?)

  $ rm *; date | gzip > 'the#date.gz'; file-roller -e . *.gz; rm *.gz; ls -l *date*
  [0]
  -rw-r--r-- 1 chris chris 29 2006-01-09 06:12 the\#date


[ Who is silly enough to put '#' characters in their filenames?  IRC clients,
logging #ubuntu for one, and I bzip2 my logs. ]"
Comment 1 Paolo Bacchilega 2006-01-14 14:00:16 UTC
fixed in current CVS, thanks.

p.s.: excellent bug report.