package_script.c: fix runtime with tcc
Making `shells` a global declaration does not seem to make tcc happy, so make this a local variable in `xbps_pkg_exec_buffer` instead.
This commit is contained in:
parent
bc59d0b407
commit
b9b6f43300
@ -31,12 +31,6 @@
|
|||||||
|
|
||||||
#include "xbps_api_impl.h"
|
#include "xbps_api_impl.h"
|
||||||
|
|
||||||
const char *shells[] = {
|
|
||||||
"/bin/sh",
|
|
||||||
"/bin/dash",
|
|
||||||
"/bin/bash",
|
|
||||||
NULL
|
|
||||||
};
|
|
||||||
|
|
||||||
int
|
int
|
||||||
xbps_pkg_exec_buffer(struct xbps_handle *xhp,
|
xbps_pkg_exec_buffer(struct xbps_handle *xhp,
|
||||||
@ -49,6 +43,12 @@ xbps_pkg_exec_buffer(struct xbps_handle *xhp,
|
|||||||
int i;
|
int i;
|
||||||
ssize_t ret;
|
ssize_t ret;
|
||||||
const char *tmpdir, *version;
|
const char *tmpdir, *version;
|
||||||
|
const char *shells[] = {
|
||||||
|
"/bin/sh",
|
||||||
|
"/bin/dash",
|
||||||
|
"/bin/bash",
|
||||||
|
NULL
|
||||||
|
};
|
||||||
char *pkgname, *fpath;
|
char *pkgname, *fpath;
|
||||||
int fd, rv;
|
int fd, rv;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user