3 Replies Latest reply on May 26, 2005 1:06 PM by Logan Ingalls

    Perl module NSH::stat() bug

    Logan Ingalls

      I've found a bug in the NSH perl module (v6.2.2). When you have a file bigger than 2^31-1 bytes (2GB), the NSH::stat command doesn't give you accurate values for the filesize. It looks like it's using a signed four-byte variable, when it should be using an unsigned.


      Any suggestions?


      $ nsh -c "ls -l //host/some/big/file"

      -rw-rw-rw- 1 root root 3351221380 May 02 23:59 //host/some/big/file


      $ perl -MNSH -e '@s=NSH::stat("//host/some/big/file"); print "$s[7]\n"'