projects
/
tools
/
build.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ad9ca05
)
Check for file existence instead of executability
15/284915/1
author
Łukasz Stelmach
<l.stelmach@samsung.com>
Wed, 30 Nov 2022 23:20:16 +0000
(
00:20
+0100)
committer
Łukasz Stelmach
<l.stelmach@samsung.com>
Thu, 1 Dec 2022 00:29:38 +0000
(
01:29
+0100)
Files under /proc/sys/fs/binfmt_misc are never executable.
Change-Id: I05bd61a03f09d5bb150f97b0ffd4c49e49ebdd69
Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
initvm.c
patch
|
blob
|
history
diff --git
a/initvm.c
b/initvm.c
index
ec973a5
..
b5f64cf
100644
(file)
--- 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,