Check if pkg INSTALL/REMOVE metadata scripts are executable rather than
readable, to ensure scripts can be executed. --HG-- extra : convert_revision : xtraeme%40gmail.com-20090825040559-nkkzvaf59r10asj7
This commit is contained in:
@ -122,7 +122,7 @@ xbps_configure_pkg(const char *pkgname, const char *version, bool check_state)
|
||||
if (chdir(rootdir) == -1)
|
||||
return errno;
|
||||
|
||||
if (access(buf, R_OK) == 0) {
|
||||
if (access(buf, X_OK) == 0) {
|
||||
if ((rv = xbps_file_chdir_exec(rootdir, buf, "post",
|
||||
pkgname, version, NULL)) != 0) {
|
||||
free(buf);
|
||||
|
Reference in New Issue
Block a user