Rename binpkg's metadata script to prepost-action.
Because in theory any shell script or executable program might run, and therefore the .sh extension is wrong. --HG-- extra : convert_revision : 2f52520ccb04cdf1c414ee0ac6128e54d82c1d36
This commit is contained in:
parent
b445b83fd3
commit
e6590dd285
2 changed files with 3 additions and 3 deletions
|
@ -278,12 +278,12 @@ xbps_unpack_archive_cb(struct archive *ar, const char *pkgname)
|
|||
* This length is '.%s/metadata/%s/prepost-action.sh' not
|
||||
* including nul.
|
||||
*/
|
||||
len = strlen(XBPS_META_PATH) + strlen(pkgname) + 29;
|
||||
len = strlen(XBPS_META_PATH) + strlen(pkgname) + 26;
|
||||
buf = malloc(len + 1);
|
||||
if (buf == NULL)
|
||||
return ENOMEM;
|
||||
|
||||
if (snprintf(buf, len + 1, ".%s/metadata/%s/prepost-action.sh",
|
||||
if (snprintf(buf, len + 1, ".%s/metadata/%s/prepost-action",
|
||||
XBPS_META_PATH, pkgname) < 0) {
|
||||
free(buf);
|
||||
return -1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue