Shinmera / file-attributes

Access to common file attributes (uid, gid, permissions, ctime, mtime, atime)
https://shinmera.github.io/file-attributes
zlib License
17 stars 2 forks source link

Wrong permissions? #1

Closed Ambrevar closed 3 years ago

Ambrevar commented 3 years ago

Looks like the read and execute permissions are inverted.

$ touch foo
$ ls -l foo
-rw-r--r-- 1 ambrevar users 0 Mar  2 09:58 foo
> (org.shirakumo.file-attributes:decode-attributes (org.shirakumo.file-attributes:attributes "foo"))
(:OTHER-READ NIL :OTHER-WRITE NIL :OTHER-EXECUTE T :GROUP-READ NIL :GROUP-WRITE
 NIL :GROUP-EXECUTE T :OWNER-READ NIL :OWNER-WRITE T :OWNER-EXECUTE T :STICKY
 NIL :SET-GROUP NIL :SET-USER NIL :FIFO NIL :DEVICE NIL :DIRECTORY NIL :NORMAL  T :LINK NIL :SOCKET NIL)

Bug?

Ambrevar commented 3 years ago

I'm on :unix.

Shinmera commented 3 years ago

So it seems, thanks for the report.

Ambrevar commented 3 years ago

That was quick, thanks! :)