summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzhang zhigang <zg84.zhang@samsung.com>2022-12-14 03:12:20 +0000
committerGerrit Code Review <gerrit@review>2022-12-14 03:12:20 +0000
commitb81ed76baf379b2431ea737866ccd715962c3aff (patch)
tree09aa07d62c2707dbe1ccae21ac5461d36afb25b9
parentab8b0ffc7f88d5b4e3a2694c74ceed954654f840 (diff)
parent77388c82d90cf7ca21e3c1ee75ca9ef1cbfbeb1c (diff)
downloadbuild-b81ed76baf379b2431ea737866ccd715962c3aff.tar.gz
build-b81ed76baf379b2431ea737866ccd715962c3aff.tar.bz2
build-b81ed76baf379b2431ea737866ccd715962c3aff.zip
Merge "Check for file existence instead of executability" into devel
-rw-r--r--initvm.c2
1 files changed, 1 insertions, 1 deletions
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,