From: Łukasz Stelmach Date: Wed, 30 Nov 2022 23:20:16 +0000 (+0100) Subject: Check for file existence instead of executability X-Git-Tag: accepted/tizen/devbase/tools/20230104.094229^2~2^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=77388c82d90cf7ca21e3c1ee75ca9ef1cbfbeb1c;p=tools%2Fbuild.git Check for file existence instead of executability Files under /proc/sys/fs/binfmt_misc are never executable. Change-Id: I05bd61a03f09d5bb150f97b0ffd4c49e49ebdd69 Signed-off-by: Łukasz Stelmach --- diff --git a/initvm.c b/initvm.c index ec973a5..b5f64cf 100644 --- a/initvm.c +++ b/initvm.c @@ -259,7 +259,7 @@ enum okfail binfmt_register(char *datafile, char *regfile) int ret; /* Is an interpreter for this arch already registered? */ snprintf(path, sizeof(path), SYSFS_BINFMT_MISC "/%s", f[name]); - ret=access(path, X_OK); + ret=access(path, F_OK); if (ret == 0) { #ifdef DEBUG fprintf(stderr,