libopkg: specify "/bin/sh" instead of "sh"
[oweals/opkg-lede.git] / libopkg / opkg_cmd.c
index 543eef4abacfe38d2d5bd284e121199332db988b..d52bcb13915ed759ab90d35102ef650fb6008ccc 100644 (file)
@@ -254,7 +254,7 @@ static int opkg_finalize_intercepts(opkg_intercept_t ctx)
                        sprintf_alloc(&path, "%s/%s", ctx->statedir,
                                      de->d_name);
                        if (access(path, X_OK) == 0) {
-                               const char *argv[] = { "sh", "-c", path, NULL };
+                               const char *argv[] = { "/bin/sh", "-c", path, NULL };
                                xsystem(argv);
                        }
                        free(path);