diff options
| author | Joakim Verona | 2011-07-15 04:39:29 +0200 |
|---|---|---|
| committer | Joakim Verona | 2011-07-15 04:39:29 +0200 |
| commit | 4f616a2e7ed1db28da98df90266e9751a8ae9ee1 (patch) | |
| tree | 74a9dcbe13e945e712ae04a4a94c2202ca720591 /src/fileio.c | |
| parent | ff2be00005c3aeda6e11d7ed264ce86f02b60958 (diff) | |
| parent | ec2bc542a4d0127425625e8cb458684bd825675a (diff) | |
| download | emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.tar.gz emacs-4f616a2e7ed1db28da98df90266e9751a8ae9ee1.zip | |
merge from upstream
Diffstat (limited to 'src/fileio.c')
| -rw-r--r-- | src/fileio.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/fileio.c b/src/fileio.c index 27fef42960a..c6f8dfe4683 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 (S_ISDIR (statbuf.st_mode)) | ||
| 1759 | xsignal2 (Qfile_error, | ||
| 1760 | build_string ("File 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); |