[Openmcl-devel] Bug in %%lstat function

Sudhir Shenoy sshenoy at gol.com
Sun Jul 10 00:13:37 PDT 2016


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