summaryrefslogtreecommitdiffstats
path: root/patches/run-scripts-with-saved-busybox.patch
diff options
context:
space:
mode:
Diffstat (limited to 'patches/run-scripts-with-saved-busybox.patch')
-rw-r--r--patches/run-scripts-with-saved-busybox.patch15
1 files changed, 15 insertions, 0 deletions
diff --git a/patches/run-scripts-with-saved-busybox.patch b/patches/run-scripts-with-saved-busybox.patch
new file mode 100644
index 0000000..ee9c960
--- /dev/null
+++ b/patches/run-scripts-with-saved-busybox.patch
@@ -0,0 +1,15 @@
+Author: Patrick McDermott <patrick.mcdermott@libiquity.com>
+Subject: Run scripts with saved busybox
+
+diff -Naurp src.orig/libopkg/pkg.c src/libopkg/pkg.c
+--- src.orig/libopkg/pkg.c 2019-01-31 04:17:16.000000000 -0500
++++ src/libopkg/pkg.c 2020-11-22 17:58:50.557357196 -0500
+@@ -1404,7 +1404,7 @@ int pkg_run_script(pkg_t * pkg, const ch
+ sprintf_alloc(&cmd, "%s %s", path, args);
+ free(path);
+ {
+- const char *argv[] = { "/bin/sh", "-c", cmd, NULL };
++ const char *argv[] = { "/var/lib/opkg/bin/sh", cmd, NULL };
+ err = xsystem(argv);
+ }
+ free(cmd);