Commit ca637b2a authored by Michael Albinus's avatar Michael Albinus
Browse files

* net/tramp.el (tramp-convert-file-attributes): Set file's gid

change bit only when id-format is 'integer.  Reported by Matt
Hodges <M.P.Hodges@rl.ac.uk>.
parent 60ee0957
2006-02-01 Michael Albinus <michael.albinus@gmx.de>
* net/tramp.el (tramp-convert-file-attributes): Set file's gid
change bit only when id-format is 'integer. Reported by Matt
Hodges <M.P.Hodges@rl.ac.uk>.
2006-02-01 Juanma Barranquero <lekktu@gmail.com>
 
* hilit-chg.el (highlight-changes-initial-state)
......
......@@ -6766,13 +6766,14 @@ If `tramp-discard-garbage' is nil, just erase buffer."
"Convert file-attributes ATTR generated by perl script or ls.
Convert file mode bits to string and set virtual device number.
Return ATTR."
;; Convert file mode bits to string.
(unless (stringp (nth 8 attr))
;; Convert file mode bits to string.
(setcar (nthcdr 8 attr) (tramp-file-mode-from-int (nth 8 attr))))
;; Set file's gid change bit.
(setcar (nthcdr 9 attr)
(not (= (nth 3 attr)
(tramp-get-remote-gid multi-method method user host))))
;; Set file's gid change bit. Possible only when id-format is 'integer.
(when (numberp (nth 3 attr))
(setcar (nthcdr 9 attr)
(not (= (nth 3 attr)
(tramp-get-remote-gid multi-method method user host)))))
;; Set virtual device number.
(setcar (nthcdr 11 attr)
(tramp-get-device multi-method method user host))
......
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