aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/src
diff options
context:
space:
mode:
authoronefang2021-09-14 12:11:02 +1000
committeronefang2021-09-14 12:11:02 +1000
commit2be7a18b206c0c9537e15a360b9c277a86cb1dce (patch)
tree9db9bed7c4b15b99d6f84b7aeb556fe619321174 /src
parentReenable some debug logging. (diff)
downloadopensim-SC-2be7a18b206c0c9537e15a360b9c277a86cb1dce.zip
opensim-SC-2be7a18b206c0c9537e15a360b9c277a86cb1dce.tar.gz
opensim-SC-2be7a18b206c0c9537e15a360b9c277a86cb1dce.tar.bz2
opensim-SC-2be7a18b206c0c9537e15a360b9c277a86cb1dce.tar.xz
Put back the stat() of the session Lua file.
Diffstat (limited to 'src')
-rw-r--r--src/sledjchisl/sledjchisl.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/sledjchisl/sledjchisl.c b/src/sledjchisl/sledjchisl.c
index 87af137..3f420c6 100644
--- a/src/sledjchisl/sledjchisl.c
+++ b/src/sledjchisl/sledjchisl.c
@@ -1045,7 +1045,13 @@ int LuaToHash(reqData *Rd, char *file, char *var, qhashtbl_t *tnm, int ret, stru
1045 if (-1 == clock_gettime(CLOCK_REALTIME, &then)) 1045 if (-1 == clock_gettime(CLOCK_REALTIME, &then))
1046 perror_msg("Unable to get the time."); 1046 perror_msg("Unable to get the time.");
1047 I("Reading %s file %s", type, file); 1047 I("Reading %s file %s", type, file);
1048 if (!Lua2hashtbl(file, tnm, var)) 1048 if (0 != stat(file, st)) // Don't delete this in future, the caller wants st filled.
1049 {
1050 D("No %s file.", file);
1051 perror_msg("Unable to stat %s", file);
1052 ret++;
1053 }
1054 else if (!Lua2hashtbl(file, tnm, var))
1049 { 1055 {
1050 bitch(Rd, "Broken thing.", "Can't run file."); 1056 bitch(Rd, "Broken thing.", "Can't run file.");
1051 ret++; 1057 ret++;