getpw/getgr module
Analogue of python's modules: * https://docs.python.org/3.7/library/pwd.html * https://docs.python.org/3.7/library/grp.html getgrnam and getgrgid merged into `getgr`, that can get both names and gid. getgrall for getting all groups + caching (flag `force` to reload cached version). Similar rules for getpw. Closes #2213
Showing
- src/CMakeLists.txt 1 addition, 0 deletionssrc/CMakeLists.txt
- src/lua/init.c 2 additions, 0 deletionssrc/lua/init.c
- src/lua/pwd.lua 200 additions, 0 deletionssrc/lua/pwd.lua
- test/app-tap/pwd.result 9 additions, 0 deletionstest/app-tap/pwd.result
- test/app-tap/pwd.test.lua 22 additions, 0 deletionstest/app-tap/pwd.test.lua
Loading
Please register or sign in to comment