libopkg: specify "/bin/sh" instead of "sh"
[oweals/opkg-lede.git] / libopkg / pkg.c
index 5370cf94e506cf9bb715564a997181a7f7e2d63f..313e691d5159aa2201d137ceb341a3485ad9ed0f 100644 (file)
@@ -1401,7 +1401,7 @@ int pkg_run_script(pkg_t * pkg, const char *script, const char *args)
        sprintf_alloc(&cmd, "%s %s", path, args);
        free(path);
        {
-               const char *argv[] = { "sh", "-c", cmd, NULL };
+               const char *argv[] = { "/bin/sh", "-c", cmd, NULL };
                err = xsystem(argv);
        }
        free(cmd);