diff options
| author | Eli Zaretskii | 2024-05-29 17:41:01 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2024-05-29 17:41:01 +0300 |
| commit | 8f618711d13fb82b10b67a12f47736e01ec4b92b (patch) | |
| tree | 8c96bd3d557f73d595e984cf33f1466e7e619255 /src | |
| parent | 608e9a5806f643876246ee9dceac381589a4fa2a (diff) | |
| download | emacs-8f618711d13fb82b10b67a12f47736e01ec4b92b.tar.gz emacs-8f618711d13fb82b10b67a12f47736e01ec4b92b.zip | |
Fix error message from 'insert-file-contents'
* src/fileio.c (Finsert_file_contents): Consider directories
to be "regular" files. (Bug#71258)
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fileio.c b/src/fileio.c index 960a3b21dc0..9955f83e625 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -4188,7 +4188,7 @@ by calling `format-decode', which see. */) | |||
| 4188 | named pipes, and it's probably just not worth it. So we should | 4188 | named pipes, and it's probably just not worth it. So we should |
| 4189 | at least signal an error. */ | 4189 | at least signal an error. */ |
| 4190 | 4190 | ||
| 4191 | if (!S_ISREG (st.st_mode)) | 4191 | if (!(S_ISREG (st.st_mode) || S_ISDIR (st.st_mode))) |
| 4192 | { | 4192 | { |
| 4193 | regular = false; | 4193 | regular = false; |
| 4194 | 4194 | ||