diff options
-rw-r--r-- | exec/exec.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/exec/exec.c b/exec/exec.c index 380fb4cd..d96ce8e9 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -778,11 +778,8 @@ prepare (file_t file, struct execdata *e) break; } } - else if (e->error == EOPNOTSUPP) - /* We can't mmap FILE, but perhaps we can do normal I/O to it. */ - e->error = 0; - if (!e->error && !e->cntl) + if (!e->cntl && (!e->error || e->error == EOPNOTSUPP)) { /* No shared page. Do a stat to find the file size. */ struct stat st; |