aboutsummaryrefslogtreecommitdiff
path: root/src/safe.c
diff options
context:
space:
mode:
authorMosder <git@mosder.eu>2026-10-13 14:48:48 +0200
committerMosder <git@mosder.eu>2026-10-13 14:48:48 +0200
commit2b01cab2df7273dad7f95c4349929a28331338c2 (patch)
treea3dd962dce355f5886644b16885cde59a260de40 /src/safe.c
parent634f254d282f119de7eeef22325045bffb5b1cf1 (diff)
refactor: removed the use of mkstemp and replaced it with tmpfile + fileno -> have tp handle that somehow, maybe freopen or something?
Diffstat (limited to 'src/safe.c')
-rw-r--r--src/safe.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/src/safe.c b/src/safe.c
index de49a58..fd7a1af 100644
--- a/src/safe.c
+++ b/src/safe.c
@@ -1,5 +1,3 @@
-#include "compat.h"
-
#define MOS_FORCE_PREFIXES
#include "moslib/safe.h"
@@ -90,11 +88,3 @@ int mos_safe_pipe_fn(int fd[2], MosSafeErrInfo info) {
ERR_MESS("failed to pipe");
exit(EXIT_FAILURE);
}
-
-int mos_safe_mkstemp_fn(char *path, MosSafeErrInfo info) {
- int fd = mos_mkstemp(path);
- if (fd != -1)
- return fd;
- ERR_MESS("failed to make temporary file");
- exit(EXIT_FAILURE);
-}