bugGNU Octave - Bugs: bug #48597, bunzip2 and gunzip remove original...

 
 

bug #48597: bunzip2 and gunzip remove original files

Submitter:  Carnë Draug <carandraug>
Submitted:  Fri 22 Jul 2016 03:38:18 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Matlab Compatibility
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 01 Oct 2018 02:17:15 PM UTC, comment #3: 

Closing this as duplicate of bug #43206, which up to now addresses only gunzip.

The error needs to be fixed in unpack, thus affects bunzip2 and gunzip.

Kai Torben Ohlhus <siko1056>
Group Member
Sun 24 Jul 2016 01:38:50 PM UTC, comment #2: 

Here's a test case demonstrating the issue:


$ echo "hello" > foobar
$ gzip --keep foobar
$ bzip2 --keep foobar
$ rm foobar
$ ls foobar.*
foobar.bz2  foobar.gz
$ octave
octave-gui:1> gunzip foobar.gz
octave-gui:2> ls foobar*
foobar        foobar.bz2
octave-gui:3> bunzip2 foobar.bz2
octave-gui:4> ls foobar*
foobar


Carnë Draug <carandraug>
Group Member
Fri 22 Jul 2016 04:43:46 PM UTC, comment #1: 

An alternative fix would be to directly uze the zlib and bz2 libraries in C++. bz2 is pretty easy to use. zlib is only slightly more complicated. This has already been done for bzip2 and gzip.

Carnë Draug <carandraug>
Group Member
Fri 22 Jul 2016 03:38:18 PM UTC, original submission:  

The functions bzip2 and gzip will remove the original after unpack.  This can be fixed by using the --kep opion for this applications.  However, this is only present on recent versions (Ubuntu 12.04 gunzip do not have this option).

Carnë Draug <carandraug>
Group Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by jwe (Updated the item)
  • -email is unavailable- added by carandraug (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-10-01 siko1056 Item GroupNone Matlab Compatibility
        StatusNone Duplicate
        Open/ClosedOpen Closed
        Dependencies- Depends on bugs #43206
    2016-07-29 jwe CategoryNone Octave Function
    2016-07-22 carandraug Summarybunzip2 and gzip remove original files bunzip2 and gunzip remove original files

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code