package: fix error message when script fails to execute

Related: https://gitlab.alpinelinux.org/alpine/apk-tools/-/issues/10825
cute-signatures
Daniel Kolesa 2022-03-09 00:10:51 +01:00 committed by Timo Teräs
parent 1d473e004c
commit 386cadd0d4
1 changed files with 1 additions and 1 deletions

View File

@ -845,7 +845,7 @@ void apk_ipkg_run_script(struct apk_installed_package *ipkg,
goto cleanup;
err_log:
apk_err(out, "%s: failed to execute: %s", &fn[15], apk_error_str(errno));
apk_err(out, "%s: failed to execute: %s", &fn[strlen(script_exec_dir)+1], apk_error_str(errno));
err:
ipkg->broken_script = 1;
cleanup: