aboutsummaryrefslogtreecommitdiff
path: root/src/lpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lpm.c')
-rw-r--r--src/lpm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lpm.c b/src/lpm.c
index fbb5981..5c39f41 100644
--- a/src/lpm.c
+++ b/src/lpm.c
@@ -260,6 +260,7 @@ static int lpm_stat(lua_State *L) {
#endif
lua_pushinteger(L, s.st_mtime); lua_setfield(L, -2, "modified");
lua_pushinteger(L, s.st_size); lua_setfield(L, -2, "size");
+ lua_pushinteger(L, s.st_mode); lua_setfield(L, -2, "mode");
if (S_ISREG(s.st_mode)) {
lua_pushstring(L, "file");
} else if (S_ISDIR(s.st_mode)) {