diff options
| author | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-27 18:12:21 -0400 |
|---|---|---|
| committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2026-04-27 18:12:21 -0400 |
| commit | 6a9f076f69d233f75ec78e74b77fefa5e9ed92db (patch) | |
| tree | 066e07a7f43793b4e73122324ecdae9add2a7759 /src/lib/delivery | |
| parent | daa5a35004bd4a39a730a01b4ed6faf554fabad8 (diff) | |
| download | stasis-6a9f076f69d233f75ec78e74b77fefa5e9ed92db.tar.gz | |
disable setting TMPDIR
Diffstat (limited to 'src/lib/delivery')
| -rw-r--r-- | src/lib/delivery/delivery_init.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/lib/delivery/delivery_init.c b/src/lib/delivery/delivery_init.c index 17f3899..ec05a0f 100644 --- a/src/lib/delivery/delivery_init.c +++ b/src/lib/delivery/delivery_init.c @@ -14,7 +14,7 @@ int delivery_init_tmpdir(struct Delivery *ctx) { int unusable = 1; errno = 0; - int need_setenv = 0; + //int need_setenv = 0; const char *x = getenv("TMPDIR"); if (x) { guard_free(ctx->storage.tmpdir); @@ -30,7 +30,7 @@ int delivery_init_tmpdir(struct Delivery *ctx) { SYSERROR("%s", "unable to allocate tmpdir"); goto l_delivery_init_tmpdir_fatal; } - need_setenv = 1; + //need_setenv = 1; } if (!ctx->storage.tmpdir) { @@ -95,9 +95,10 @@ int delivery_init_tmpdir(struct Delivery *ctx) { } } unusable = 0; - if (need_setenv) { - setenv("TMPDIR", ctx->storage.tmpdir, 1); - } + // TODO: Figure out why this breaks EVERYTHING + //if (need_setenv) { + // setenv("TMPDIR", ctx->storage.tmpdir, 1); + //} l_delivery_init_tmpdir_fatal: guard_free(tmpdir); |
