diff options
author | Łukasz Stelmach <l.stelmach@samsung.com> | 2022-12-01 00:20:16 +0100 |
---|---|---|
committer | Łukasz Stelmach <l.stelmach@samsung.com> | 2022-12-01 01:29:38 +0100 |
commit | 77388c82d90cf7ca21e3c1ee75ca9ef1cbfbeb1c (patch) | |
tree | f057f43115e6aa3340fe843ea2dd8d3d9b9fb9fd | |
parent | ad9ca05698797748ae7efabbd4ab21aad4faf953 (diff) | |
download | build-77388c82d90cf7ca21e3c1ee75ca9ef1cbfbeb1c.tar.gz build-77388c82d90cf7ca21e3c1ee75ca9ef1cbfbeb1c.tar.bz2 build-77388c82d90cf7ca21e3c1ee75ca9ef1cbfbeb1c.zip |
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 <l.stelmach@samsung.com>
-rw-r--r-- | initvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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, |