[Bugzilla] [Bug 15471] New: On Windows, fileinfo(path)([12 13]) is always [0 1] (inode#, #hard links)

bugzilla.admin at scilab.org bugzilla.admin at scilab.org
Mon Mar 5 00:32:15 CET 2018


http://bugzilla.scilab.org/show_bug.cgi?id=15471
--------- Bug Summary -----------
On Windows, fileinfo(path)([12 13]) is always [0 1]  (inode#, #hard links)

---------- Changed by ------------
sgougeon at free.fr

---------- What changed ----------
bug_id, short_desc, product, version, rep_platform, op_sys, bug_status, bug_severity, priority, component, assigned_to, reporter


            Bug ID: 15471
           Summary: On Windows, fileinfo(path)([12 13]) is always [0 1]
                    (inode#, #hard links)
           Product: Scilab software
           Version: 5.0 through 5.3.x
          Hardware: (not used)
                OS: All OS
            Status: NEW
          Severity: Minor
          Priority: (field not used)
         Component: Input / output
          Assignee: bugzilla.admin at scilab.org
          Reporter: sgougeon at free.fr

BUG DESCRIPTION:
----------------
On Windows, fileinfo(path)([12 13]) is always [0 1]  (inode#, #hard links).
When running the code provided in the "How to reproduce" section, we get:

--> i = fileinfo(path)
 i  = 
   91710.   33206.   0.   0.   2.   1.519D+09   1.520D+09   1.520D+09   2.   0.   0.   0.   1.

--> host("mklink /h """ + pathLink + """ """ + path + """")
 ans  =
   0.

--> j = fileinfo([path pathLink])
 j  = 
   91710.   33206.   0.   0.   2.   1.519D+09   1.520D+09   1.520D+09   2.   0.   0.   0.   1.
   91710.   33206.   0.   0.   2.   1.519D+09   1.520D+09   1.520D+09   2.   0.   0.   0.   1.

--> and(j(:,12)==[0;0])
 ans  =
  T

--> and(j(:,13)==[1;1])
 ans  =
  T

ERROR LOG:
----------


HOW TO REPRODUCE THE BUG:
-------------------------
path = TMPDIR + "/text.txt";
pathLink = TMPDIR + "/text2.txt";
copyfile(SCI + "/CHANGES.md", path);
i = fileinfo(path)
host("mklink /h """ + pathLink + """ """ + path + """")
j = fileinfo([path pathLink])
and(j(:,12)==[0;0])
and(j(:,13)==[1;1])
mdelete(pathLink)



OTHER INFORMATION:
------------------
Same thing in Scilab 5.5.2 and Scilab 6.0.1
With Win7 64 bits

-- 
You are receiving this mail because:
You are watching all bug changes.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/bugzilla/attachments/20180305/f09e1cd5/attachment.htm>


More information about the Bugzilla mailing list