aboutsummaryrefslogtreecommitdiff
path: root/libexec/flua
diff options
context:
space:
mode:
authorKyle Evans <kevans@FreeBSD.org>2026-03-09 21:38:57 +0000
committerKyle Evans <kevans@FreeBSD.org>2026-03-09 21:39:10 +0000
commitbc531a96c9b28b1cabcd5deb0c9f8f6d815cfebc (patch)
treee2d5ff7df1f5adbbf950b41e94e27fe708e8a0fa /libexec/flua
parent863b5c137a98d29dc6964cba0e0c4fe2a8bebab8 (diff)
Diffstat (limited to 'libexec/flua')
-rw-r--r--libexec/flua/lfs/lfs.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/libexec/flua/lfs/lfs.c b/libexec/flua/lfs/lfs.c
index 517e16ae65c8..a3594d2b7d97 100644
--- a/libexec/flua/lfs/lfs.c
+++ b/libexec/flua/lfs/lfs.c
@@ -444,6 +444,10 @@ luaopen_lfs(lua_State *L)
/* Non-standard extension for loader, used with lfs.dir(). */
lua_pushinteger(L, DT_DIR);
lua_setfield(L, -2, "DT_DIR");
+ lua_pushinteger(L, DT_REG);
+ lua_setfield(L, -2, "DT_REG");
+ lua_pushinteger(L, DT_LNK);
+ lua_setfield(L, -2, "DT_LNK");
#endif
return 1;
}