<html>
    <head>
      <base href="http://bugzilla.scilab.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
         <tr>
                <th>Reporter</th>
            <td>sgougeon@free.fr</td>
         </tr>
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - On Windows, fileinfo(path)([12 13]) is always [0 1] (inode#, #hard links)"
   href="http://bugzilla.scilab.org/show_bug.cgi?id=15471">15471</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>On Windows, fileinfo(path)([12 13]) is always [0 1]  (inode#, #hard links)
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>Scilab software
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>5.0 through 5.3.x
          </td>
        </tr>


        <tr>
          <th>OS</th>
          <td>All OS
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>Minor
          </td>
        </tr>


        <tr>
          <th>Component</th>
          <td>Input / output
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>bugzilla.admin@scilab.org
          </td>
        </tr>
</table>
      <p>
        <div>
        <pre>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</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are watching all bug changes.</li>
      </ul>
    </body>
</html>