const char *app_path, const char *root_path,
const char *pkgid, const char *pkg_type, int loader_type, bool global)
{
- char err_str[MAX_LOCAL_BUFSZ] = { 0, };
int r;
r = __prepare_exec(appid, app_path, pkg_type, loader_type, pkgid,
root_path, global, kb);
if (r < 0) {
- _E("__candidate_process_prepare_exec() failed");
- if (access(app_path, F_OK | R_OK)) {
- SECURE_LOGE("access() failed for file: \"%s\", " \
- "error: %d (%s)", app_path, errno,
- strerror_r(errno, err_str, sizeof(err_str)));
- }
+ _E("__candidate_process_prepare_exec() failed. %s : %s",
+ appid, app_path);
exit(-1);
}