| ... | @@ -2739,6 +2739,7 @@ fn dirOpenDir( | ... | @@ -2739,6 +2739,7 @@ fn dirOpenDir( |
| 2739 | error.FileBusy => return errnoBug(.TXTBSY), | 2739 | error.FileBusy => return errnoBug(.TXTBSY), |
| 2740 | error.PathAlreadyExists => return errnoBug(.EXIST), // Not creating. | 2740 | error.PathAlreadyExists => return errnoBug(.EXIST), // Not creating. |
| 2741 | error.OperationUnsupported => return errnoBug(.OPNOTSUPP), // No TMPFILE, no locks. | 2741 | error.OperationUnsupported => return errnoBug(.OPNOTSUPP), // No TMPFILE, no locks. |
| | 2742 | error.ReadOnlyFileSystem => return errnoBug(.ROFS), // Not creating. |
| 2742 | else => |e| return e, | 2743 | else => |e| return e, |
| 2743 | }, | 2744 | }, |
| 2744 | }; | 2745 | }; |
| ... | @@ -3164,6 +3165,7 @@ fn dirRealPathFile( | ... | @@ -3164,6 +3165,7 @@ fn dirRealPathFile( |
| 3164 | }, 0) catch |err| switch (err) { | 3165 | }, 0) catch |err| switch (err) { |
| 3165 | error.WouldBlock => return errnoBug(.AGAIN), | 3166 | error.WouldBlock => return errnoBug(.AGAIN), |
| 3166 | error.OperationUnsupported => return errnoBug(.OPNOTSUPP), // Not asking for locks. | 3167 | error.OperationUnsupported => return errnoBug(.OPNOTSUPP), // Not asking for locks. |
| | 3168 | error.ReadOnlyFileSystem => return errnoBug(.ROFS), // Not creating. |
| 3167 | else => |e| return e, | 3169 | else => |e| return e, |
| 3168 | }; | 3170 | }; |
| 3169 | defer ev.closeAsync(fd); | 3171 | defer ev.closeAsync(fd); |