aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog4
-rw-r--r--src/fileio.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 18ecc1ae41f..1be9b09381e 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,9 @@
12011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org> 12011-07-04 Lars Magne Ingebrigtsen <larsi@gnus.org>
2 2
3 * fileio.c (barf_or_query_if_file_exists): Check first if the file
4 is a directory before asking whether to use the file name
5 (bug#7564).
6
3 * fns.c (Frequire): Remove the mention of the .gz files, since 7 * fns.c (Frequire): Remove the mention of the .gz files, since
4 that's installation-specific, but keep the mention of 8 that's installation-specific, but keep the mention of
5 `get-load-suffixes'. 9 `get-load-suffixes'.
diff --git a/src/fileio.c b/src/fileio.c
index 27fef42960a..6a4d1c55680 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -1755,6 +1755,10 @@ barf_or_query_if_file_exists (Lisp_Object absname, const char *querystring,
1755 regardless of what access permissions it has. */ 1755 regardless of what access permissions it has. */
1756 if (lstat (SSDATA (encoded_filename), &statbuf) >= 0) 1756 if (lstat (SSDATA (encoded_filename), &statbuf) >= 0)
1757 { 1757 {
1758 if (Ffile_directory_p (absname))
1759 xsignal2 (Qfile_error,
1760 build_string ("File name is a directory"), absname);
1761
1758 if (! interactive) 1762 if (! interactive)
1759 xsignal2 (Qfile_already_exists, 1763 xsignal2 (Qfile_already_exists,
1760 build_string ("File already exists"), absname); 1764 build_string ("File already exists"), absname);