]> git.ipfire.org Git - pakfire.git/commitdiff
execute: Copy scripts into /
authorMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jul 2022 17:30:16 +0000 (17:30 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Mon, 18 Jul 2022 17:30:16 +0000 (17:30 +0000)
Formerly they were created in /tmp which could be overlayed by a tmpfs.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/libpakfire/execute.c

index d458175455b33f704585a6a5ba487a74c4b95158..5bda95a153c8bf779846ee9e407ce0799f1aea6c 100644 (file)
@@ -873,7 +873,7 @@ PAKFIRE_EXPORT int pakfire_execute_script(struct pakfire* pakfire, const char* s
        int r;
 
        // Write the scriptlet to disk
-       r = pakfire_path_join(path, root, "tmp/.pakfire-script.XXXXXX");
+       r = pakfire_path_join(path, root, "pakfire-script.XXXXXX");
        if (r < 0)
                goto out;