From 47d92085cf2b2ca914a0bf03337ad07b35bbb20f Mon Sep 17 00:00:00 2001
From: Sebastian Krzyszkowiak <dos@dosowisko.net>
Date: Sat, 25 Nov 2023 02:46:24 +0100
Subject: [PATCH] sim: Return st_size and st_mtime in stat result

That's how the real thing behaves.
---
 sim/run.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sim/run.py b/sim/run.py
index bd1cb49b47..f2b7838655 100755
--- a/sim/run.py
+++ b/sim/run.py
@@ -138,7 +138,7 @@ orig_stat = os.stat
 def _stat(path):
     res = orig_stat(path)
     # lmao
-    return os.stat_result((res.st_mode, 0, 0, 0, 0, 0, 0, 0, 0, 0))
+    return os.stat_result((res.st_mode, 0, 0, 0, 0, 0, res.st_size, 0, res.st_mtime, 0))
 
 
 os.stat = _stat
-- 
GitLab