From d4ec96e35c04741942089c2c2e2d323c761c6840 Mon Sep 17 00:00:00 2001 From: Matthew Flatt Date: Thu, 22 Dec 2016 18:10:19 -0700 Subject: [PATCH] recognize EROFS for `file-or-directory-permissions` Closes #1478 --- racket/src/racket/src/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/racket/src/racket/src/file.c b/racket/src/racket/src/file.c index 90c0c6154e..abca34117b 100644 --- a/racket/src/racket/src/file.c +++ b/racket/src/racket/src/file.c @@ -6158,7 +6158,7 @@ static Scheme_Object *file_or_dir_permissions(int argc, Scheme_Object *argv[]) X, at least, such a failure seems to mean that the file is not writable. (We assume it's not a directory-access issue, since the read test succeeded.) */ - if (ok && (errno != EACCES) && (errno != EPERM)) + if (ok && (errno != EACCES) && (errno != EPERM) && (errno != EROFS)) l = NULL; else { do {