Date: Mon, 09 Mar 2026 21:39:45 +0000 From: Kyle Evans <kevans@FreeBSD.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org Subject: git: bc531a96c9b2 - main - stand: lua: break out a few more dirent types in lfs Message-ID: <69af3e21.3b94e.30938090@gitrepo.freebsd.org>
index | next in thread | raw e-mail
The branch main has been updated by kevans: URL: https://cgit.FreeBSD.org/src/commit/?id=bc531a96c9b28b1cabcd5deb0c9f8f6d815cfebc commit bc531a96c9b28b1cabcd5deb0c9f8f6d815cfebc Author: Kyle Evans <kevans@FreeBSD.org> AuthorDate: 2026-03-09 21:38:57 +0000 Commit: Kyle Evans <kevans@FreeBSD.org> CommitDate: 2026-03-09 21:39:10 +0000 stand: lua: break out a few more dirent types in lfs These are non-standard and specific to the version used in loader. We have some desire to recognize symlinks to avoid filtering out kernel symlinks in the autodetection bits when they would be perfectly fine to `load`. This won't be usable right away, so any impending use will need to be careful to account for nil. Reported by: leres --- libexec/flua/lfs/lfs.c | 4 ++++ 1 file changed, 4 insertions(+) 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; }home | help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?69af3e21.3b94e.30938090>
