commit 50f019c2d54bea230fb84cc097dc31a4aa5a4055
parent 017ecf1bdee6b4fb9ab362fa9e7a462ff9aef594
Author: phoebos <ben@bvnf.space>
Date: Fri, 28 Jul 2023 12:33:08 +0100
build.get_etcsums: stat -> lstat
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/bliss/build.lua b/bliss/build.lua
@@ -142,7 +142,7 @@ local function gen_etcsums(env, p)
line = line[1]
if string.sub(line, 1, 5) == "/etc/" and string.sub(line, -1) ~= "/" then
local f = destdir .. line
- local sb = sys_stat.stat(f)
+ local sb = sys_stat.lstat(f)
if sys_stat.S_ISLNK(sb.st_mode) ~= 0 then
f = "/dev/null"
end