From 9e0f18517455366ead4a69e9949c922668d9c371 Mon Sep 17 00:00:00 2001 From: Sunny Date: Fri, 26 May 2023 20:51:15 +0200 Subject: [PATCH] rM: Work around LD_PRELOAD weirdness on forks on rM 2 (#10490) --- frontend/util.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/util.lua b/frontend/util.lua index e19a1141d..01241a084 100644 --- a/frontend/util.lua +++ b/frontend/util.lua @@ -859,7 +859,7 @@ end function util.diskUsage(dir) -- safe way of testing df & awk local function doCommand(d) - local handle = io.popen("df -k " .. d .. " 2>&1 | awk '$3 ~ /[0-9]+/ { print $2,$3,$4 }' 2>&1 || echo ::ERROR::") + local handle = io.popen("df -k " .. d .. " 2>/dev/null | awk '$3 ~ /[0-9]+/ { print $2,$3,$4 }' 2>/dev/null || echo ::ERROR::") if not handle then return end local output = handle:read("*all") handle:close()