diff options
author | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-11-20 17:07:11 -0500 |
---|---|---|
committer | Joseph Hunkeler <jhunkeler@gmail.com> | 2023-11-20 17:07:11 -0500 |
commit | 43bcd36bb31c1ab117b54f21746b119db2448449 (patch) | |
tree | 12e69ecb6c84a8b99ae8df3bbf65642152d21bcc /include | |
parent | 8b3f862c59f7866f67f1da349efd5e3d931e1eae (diff) | |
download | stasis-43bcd36bb31c1ab117b54f21746b119db2448449.tar.gz |
Use TMPDIR, and fail when script cannot be executed within that filesystem
Diffstat (limited to 'include')
-rw-r--r-- | include/omc.h | 1 | ||||
-rw-r--r-- | include/system.h | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/include/omc.h b/include/omc.h index 6c4821f..432d88a 100644 --- a/include/omc.h +++ b/include/omc.h @@ -13,6 +13,7 @@ struct OMC_GLOBAL { unsigned char verbose; unsigned char always_update_base_environment; unsigned char continue_on_error; + char *tmpdir; }; #include "utils.h" diff --git a/include/system.h b/include/system.h index d744726..32c7c79 100644 --- a/include/system.h +++ b/include/system.h @@ -24,6 +24,6 @@ struct Process { int shell(struct Process *proc, char *args[]); int shell2(struct Process *proc, char *args); int shell_safe(struct Process *proc, char *args[]); -char *shell_output(const char *command); +char *shell_output(const char *command, int *status); #endif //OMC_SYSTEM_H |