diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-06-06 02:22:28 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2023-06-06 02:22:28 +0200 |
| commit | 3102e0da4bd1bcaf4e3e0aeb554a6efa87436e5d (patch) | |
| tree | 4d8cf7e97a6b252207e56724cab00c723f5f58b2 | |
| parent | 17502e7e32c041761dc383a481861997aee7ad28 (diff) | |
| download | slcl-3102e0da4bd1bcaf4e3e0aeb554a6efa87436e5d.tar.gz | |
page.c: Call page_not_found on ENOTDIR
ENOTDIR is another non-fatal errno value that can be returned by
stat(2).
| -rw-r--r-- | page.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1103,7 +1103,7 @@ int page_resource(const struct page_resource *const pr) fprintf(stderr, "%s: stat(2) %s: %s\n", __func__, pr->res, strerror(errno)); - if (errno == ENOENT) + if (errno == ENOENT || errno == ENOTDIR) return page_not_found(pr->r); else return -1; |
