emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] master b86b8ee: Minor tweaks in tramp-archive.el


From: Michael Albinus
Subject: [Emacs-diffs] master b86b8ee: Minor tweaks in tramp-archive.el
Date: Fri, 2 Feb 2018 11:06:33 -0500 (EST)

branch: master
commit b86b8ee07237a3c4653a63e436d2127685cadffb
Author: Michael Albinus <address@hidden>
Commit: Michael Albinus <address@hidden>

    Minor tweaks in tramp-archive.el
    
    * lisp/net/tramp-archive.el (tramp-archive-file-name-handler):
    Bind `tramp-unknown-id-integer' and `tramp-unknown-id-string'
    in order to have minimal ownership information.
---
 lisp/net/tramp-archive.el | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el
index 241bb29..e012ac3 100644
--- a/lisp/net/tramp-archive.el
+++ b/lisp/net/tramp-archive.el
@@ -287,6 +287,9 @@ pass to the OPERATION."
        (tramp-compat-user-error nil "Package `tramp-archive' not supported"))
       (let ((tramp-methods (cons `(,tramp-archive-method) tramp-methods))
            (tramp-gvfs-methods tramp-archive-all-gvfs-methods)
+           ;; Set uid and gid.  gvfsd-archive could do it, but it doesn't.
+           (tramp-unknown-id-integer (user-uid))
+           (tramp-unknown-id-string (user-login-name))
            (fn (assoc operation tramp-archive-file-name-handler-alist)))
        (when (eq (cdr fn) 'tramp-archive-handle-not-implemented)
          (setq args (cons operation args)))
@@ -583,9 +586,11 @@ offered."
 
 ;;; TODO:
 
-;; * See, whether we could retrieve better file attributes like uid,
-;;   gid, permissions.
+;; * Check, whether we could retrieve better file attributes like uid,
+;;   gid, permissions.  See gvfsbackendarchive.c
+;;   (archive_file_set_info_from_entry), where it is commented out.
 ;;
 ;; * Implement write access, when possible.
+;;   https://bugzilla.gnome.org/show_bug.cgi?id=589617
 
 ;;; tramp-archive.el ends here



reply via email to

[Prev in Thread] Current Thread [Next in Thread]