[Openmcl-devel] Bug in %%lstat function

R. Matthew Emerson rme at clozure.com
Sun Jul 10 09:38:48 PDT 2016


I made some changes related to how stat is called on OS X a little while ago.

I assume this problem must be due to that. I'll look into it.



> On Jul 10, 2016, at 3:13 AM, Sudhir Shenoy <sshenoy at gol.com> wrote:
> 
> Hi,
> 
> There seems to be a bug in the FFI call to lstat (in %%lstat in level-1/linux-files.lisp) due to which the file type is returned as :special instead of :directory.
> 
> In the example below, my home directory is returning the correct mode (16877 = 0x41ED) using %%stat but an incorrect value (61339 = 0xEF9B) when using %%lstat. The other values in the struct also have strange values.
> 
> The CCL version is the latest dev branch. On another machine with an older version (1.12-dev-r16748M-trunk), both functions return correct values. Both machines are running OS X 10.11.5 (El Capitan)
> 
> Cheers
> Sudhir
> 
> 
> CL-USER> (ccl::%stat "/Users/sudhir/" t)
> T
> 61339
> 0
> 0
> 2151783809517
> 20
> 0
> 1468131
> 0
> 16777219
> CL-USER> (ccl::%stat "/Users/sudhir/" nil)
> T
> 16877
> 2686
> 1468130621
> 1961883
> 501
> 4096
> 0
> 20
> 16777219
> 




More information about the Openmcl-devel mailing list