commit 5c6b459524ba44d6e104d7cfb1170460a5a5bcb1
parent 69e365042320aa1cfc27b327da10be6151e4b541
Author: cowmonk <cowmonk@based.pt>
Date: Wed, 24 Jun 2026 01:14:13 +0000
fix slog
dumb oversight, I made a force push on slog, didn't realize that it
didn't have sys/stat.h or the dir parsed to slog after.
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/slog.c b/slog.c
@@ -13,6 +13,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
+#include <sys/stat.h>
#include <unistd.h>
static void
@@ -66,7 +67,7 @@ main(int argc, char *argv[])
default: usage();
} ARGEND
- mkdir_p();
+ mkdir_p(dir);
snprintf(cur, sizeof(cur), "%s/current", dir);
fd = open(cur, O_WRONLY | O_CREAT | O_APPEND, 0644);