Feature #185

luaposix: numeric presentation of stat().mode

Added by aa latchm over 2 years ago. Updated over 1 year ago.

Status:Closed Start date:10/15/2009
Priority:Low Due date:
Assignee:Natanael Copa % Done:

100%

Category:Documentation
Target version:Alpine 2.0.0 Estimated time:2.00 hours

Description

currently, posix.stat only provides a human-readable representation of file mode. http://wiki.alpinelinux.org/w/index.php?title=LPOSIX#stat indicates a "_mode" option for numneric mode, but this does not exist.

> a = posix.stat("/etc/")
> print(a["mode"])
rwxr-xr-x
> print(a["_mode"])
nil

Although the current format of posix.stat(f, "mode") can be used with posix.chmod, it would improve interoperability and processing to provide numeric mode.

History

Updated by Natanael Copa about 2 years ago

  • Target version changed from Alpine 1.9 to Alpine 1.10.0

Updated by Natanael Copa almost 2 years ago

  • Priority changed from Normal to Low
  • Target version changed from Alpine 1.10.0 to Alpine 2.0.0

didnt make it for 1.10

Updated by Natanael Copa over 1 year ago

Coudl you please check up where the documenter got the _mode from? might be its a debian patch or something that we could just reuse.

Updated by Natanael Copa over 1 year ago

  • Category changed from ACF to Documentation

I think we better just fix the doc.

Updated by Natanael Copa over 1 year ago

  • Status changed from New to Closed
  • % Done changed from 0 to 100

Doc is updated.

Also available in: Atom PDF