diff options
Diffstat (limited to 'trans')
-rw-r--r-- | trans/fakeroot.c | 3 |
1 files changed, 2 insertions, 1 deletions
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); |