octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #47232] zip fails if filename has whitespace


From: Rik
Subject: [Octave-bug-tracker] [bug #47232] zip fails if filename has whitespace
Date: Tue, 23 Feb 2016 18:49:41 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:43.0) Gecko/20100101 Firefox/43.0

Update of bug #47232 (project octave):

                  Status:         Patch Submitted => In Progress            
             Assigned to:                    None => andy1978               

    _______________________________________________________

Follow-up Comment #4:

@Andreas: Your patch is correct.  Please apply it.

In addition, could you take a look at the related functions of gzip, bzip2,
and tar?  They break down in a similar manner when there is a space in the
input.

tar.m can use the exact same fix since it has the syntax:


cmd = ... sprintf (...);


gzip and bzip2 both rely on the private function __xzip__.m, but check line
73.  The fix below seems to work there as well.


cmd = sprintf (commandtemplate, sprintf (' "%s"', fnames{:}));




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?47232>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]