|
| From: | Markus Mützel |
| Subject: | [Octave-bug-tracker] [bug #57664] dir() function folder element is empty for Windows UNC network-based files |
| Date: | Sun, 2 Feb 2020 08:17:59 -0500 (EST) |
| User-agent: | Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:73.0) Gecko/20100101 Firefox/73.0 |
Update of bug #57664 (project octave):
Status: Patch Submitted => None
_______________________________________________________
Follow-up Comment #12:
I couldn't find a place in Windows where starting UNC shares with "//" is
valid syntax. So I ended up pushing Mike's patch here:
http://hg.savannah.gnu.org/hgweb/octave/rev/673fb7081ebe
If we want to allow forward slashes. This can still be done in a later patch.
There might be another one or two somewhat independent issues with dir and UNC
paths:
* Calling "dir" directly on a shared folder fails:
>> dir('\\SERVER\share')
warning: dir: nonexistent directory '\\SERVER\share'
warning: called from
dir at line 193 column 5
* Paths starting with "\\" are literal on Windows. E.g., it would be possible
to list the content of a folder with name "..". That leads to lstat failing:
>> dir('\\SERVER\share\test')
warning: dir: 'lstat (\\SERVER\share\test\..)' failed: No such file or
directory
warning: called from
dir at line 132 column 9
. Octave (GUI).lnk test.txt test_octave.bat
test_unc.m
Maybe, we could skip lstat on ".."?
New bug report(s)?
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57664>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |