From d32a1dbcd2e0dca33bcca23af2ab30f94510a265 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sun, 5 May 2002 20:26:32 +0000 Subject: 2002-05-05 Roland McGrath * fakeroot.c (netfs_attempt_lookup): Check for EROFS or EISDIR error from O_RDWR lookup. --- trans/fakeroot.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/trans/fakeroot.c b/trans/fakeroot.c index 29f39018..a1f3fbb7 100644 --- a/trans/fakeroot.c +++ b/trans/fakeroot.c @@ -336,7 +336,8 @@ netfs_attempt_lookup (struct iouser *user, struct node *dir, flags = O_RDWR|O_EXEC; file = file_name_lookup_under (dirfile, name, flags | O_NOLINK, 0); - if (file == MACH_PORT_NULL && errno == EACCES) + if (file == MACH_PORT_NULL && (errno == EACCES + || errno == EROFS || errno == EISDIR)) { flags = O_RDWR; file = file_name_lookup_under (dirfile, name, flags | O_NOLINK, 0); -- cgit v1.2.3