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
f58f7520
Commit
f58f7520
authored
Oct 06, 2009
by
Sam Steingold
Browse files
(tramp-compat-process-running-p): Check that
the comm attribute is present before calling regexp-quote.
parent
9972911f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/net/tramp-compat.el
lisp/net/tramp-compat.el
+9
-9
No files found.
lisp/ChangeLog
View file @
f58f7520
2009-10-06 Sam Steingold <sds@gnu.org>
* net/tramp-compat.el (tramp-compat-process-running-p): Check that
the comm attribute is present before calling regexp-quote.
2009-10-06 Juanma Barranquero <lekktu@gmail.com>
* play/animate.el (animate-string): For good effect, make sure
...
...
lisp/net/tramp-compat.el
View file @
f58f7520
...
...
@@ -312,15 +312,15 @@ element is not omitted."
(
dolist
(
pid
(
funcall
(
symbol-function
'list-system-processes
))
result
)
(
let
((
attributes
(
funcall
(
symbol-function
'process-attributes
)
pid
)))
(
when
(
and
(
string-equal
(
cdr
(
assoc
'
user
attributes
))
(
user-login-name
))
;; The returned command name could be truncated
;; to 15 characters. Therefore, we cannot check
;; for `string-equal'.
(
string-match
(
concat
"^"
(
regexp-quote
(
cdr
(
assoc
'comm
attributes
))
))
process-name
))
(
when
(
and
(
string-equal
(
cdr
(
assoc
'user
attributes
))
(
user-login-name
))
(
let
((
comm
(
cdr
(
assoc
'
comm
attributes
))))
;; The returned command name could be truncated
;; to 15 characters. Therefore, we cannot check
;; for `string-equal'.
(
and
comm
(
string-match
(
concat
"^"
(
regexp-quote
comm
))
process-name
))
))
(
setq
result
t
))))))
;; Fallback, if there is no Lisp support yet.
...
...
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