mirror of
https://github.com/masscollaborationlabs/emacs.git
synced 2025-07-05 11:49:37 +00:00
Give a more sensible message if file-attributes fails (Bug#29070)
* lisp/server.el (server-ensure-safe-dir): Don't claim the directory is a file if we fail to get anything from `file-attributes'.
This commit is contained in:
parent
8453423c7c
commit
dc0a25c2f9
1 changed files with 4 additions and 2 deletions
|
@ -527,8 +527,10 @@ Creates the directory if necessary and makes sure:
|
||||||
(w32 (eq system-type 'windows-nt))
|
(w32 (eq system-type 'windows-nt))
|
||||||
(unsafe (cond
|
(unsafe (cond
|
||||||
((not (eq t (car attrs)))
|
((not (eq t (car attrs)))
|
||||||
(format "it is a %s" (if (stringp (car attrs))
|
(if (null attrs) "its attributes can't be checked"
|
||||||
"symlink" "file")))
|
(format "it is a %s"
|
||||||
|
(if (stringp (car attrs))
|
||||||
|
"symlink" "file"))))
|
||||||
((and w32 (zerop uid)) ; on FAT32?
|
((and w32 (zerop uid)) ; on FAT32?
|
||||||
(display-warning
|
(display-warning
|
||||||
'server
|
'server
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue