Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d7554167
Commit
d7554167
authored
Sep 18, 2009
by
Juanma Barranquero
Browse files
* server.el (server-ensure-safe-dir): Pass 'integer
to `file-attributes', as suggested.
parent
35a3f9a4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
2 deletions
+7
-2
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/server.el
lisp/server.el
+2
-2
No files found.
lisp/ChangeLog
View file @
d7554167
2009-09-18 Juanma Barranquero <lekktu@gmail.com>
* server.el (server-ensure-safe-dir): Pass 'integer
to `file-attributes', as suggested.
2009-09-18 Stefan Monnier <monnier@iro.umontreal.ca>
* dired-aux.el (dired-query-alist): Remove spurious backslash.
...
...
lisp/server.el
View file @
d7554167
...
...
@@ -449,10 +449,10 @@ Creates the directory if necessary and makes sure:
- it's owned by us
- it's not readable/writable by anybody else."
(
setq
dir
(
directory-file-name
dir
))
(
let
((
attrs
(
file-attributes
dir
)))
(
let
((
attrs
(
file-attributes
dir
'integer
)))
(
unless
attrs
(
letf
(((
default-file-modes
)
?\700
))
(
make-directory
dir
t
))
(
setq
attrs
(
file-attributes
dir
)))
(
setq
attrs
(
file-attributes
dir
'integer
)))
;; Check that it's safe for use.
(
unless
(
and
(
eq
t
(
car
attrs
))
(
eql
(
nth
2
attrs
)
(
user-uid
))
(
or
(
eq
system-type
'windows-nt
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment