summaryrefslogtreecommitdiff
path: root/exec
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-05-11 01:52:22 +0000
committerRoland McGrath <roland@gnu.org>2002-05-11 01:52:22 +0000
commite0c5be6ae6dcbd0b9dc97611cb8d90d50f3cad0b (patch)
tree9944676290e357cdca69e0ab54b1eeb209340f5a /exec
parent0a3e6144a890c6aceb17f36c339859d7ecf67e53 (diff)
(prepare): fix last change
Diffstat (limited to 'exec')
-rw-r--r--exec/exec.c5
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;