From e0c5be6ae6dcbd0b9dc97611cb8d90d50f3cad0b Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 11 May 2002 01:52:22 +0000 Subject: (prepare): fix last change --- exec/exec.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'exec') 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; -- cgit v1.2.3