Commit 3bde9f24 authored by Michael Albinus's avatar Michael Albinus
Browse files

* net/tramp.el (tramp-set-file-uid-gid): Protect `call-process'

when we are local.
parent 03b5bade
2007-10-23 Michael Albinus <>
* net/tramp.el (tramp-set-file-uid-gid): Protect `call-process'
when we are local.
2007-10-23 Stefan Monnier <>
* progmodes/python.el (python-current-defun): Remove left-over
......@@ -2575,11 +2575,14 @@ and gid of the corresponding user is taken. Both parameters must be integers."
;; We handle also the local part, because there doesn't exist
;; `set-file-uid-gid'.
(let ((uid (or (and (integerp uid) uid) (tramp-get-local-uid 'integer)))
(gid (or (and (integerp gid) gid) (tramp-get-local-uid 'integer)))
(gid (or (and (integerp gid) gid) (tramp-get-local-gid 'integer)))
(default-directory (tramp-compat-temporary-file-directory)))
;; "chown" might not exist, for example on Win32.
(condition-case nil
"chown" nil nil nil
(format "%d:%d" uid gid) (tramp-shell-quote-argument filename)))))
(format "%d:%d" uid gid) (tramp-shell-quote-argument filename))
(error nil)))))
;; Simple functions using the `test' command.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment