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

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

[Octave-bug-tracker] [bug #58547] gzip()/bzip2() do not handle relative


From: Rik
Subject: [Octave-bug-tracker] [bug #58547] gzip()/bzip2() do not handle relative paths in first argument correctly
Date: Tue, 16 Jun 2020 15:08:08 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko

Follow-up Comment #8, bug #58547 (project octave):

I can be more precise, "foo/bar" is neither rooted relative nor absolute. 
Octave is currently checking for rooted relative paths for which the fragment
returns false.

I suppose the question is why Octave has this test at all:


  if (! (do_absolute_pathname (s) || do_rooted_relative_pathname (s)))
    return s;


If you comment this out, does do_base_pathname now do what you expect?

If you comment this out, does 'make check' pass?

I tried using 'hg blame' to figure out when this bit of code was added, but it
didn't particularly help.  It's been there since at least 2012, but possibly
goes even further back.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?58547>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/




reply via email to

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