aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2018-02-02 17:06:22 +0100
committerMichael Albinus2018-02-02 17:06:22 +0100
commitb86b8ee07237a3c4653a63e436d2127685cadffb (patch)
treee58513b5f31ad09e416dec61c8e968f42a4149e7
parenta893a4db20e9a6cf6a03855d40d9b9dfd9c49139 (diff)
downloademacs-b86b8ee07237a3c4653a63e436d2127685cadffb.tar.gz
emacs-b86b8ee07237a3c4653a63e436d2127685cadffb.zip
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.
-rw-r--r--lisp/net/tramp-archive.el9
1 files changed, 7 insertions, 2 deletions
diff --git a/lisp/net/tramp-archive.el b/lisp/net/tramp-archive.el
index 241bb29759d..e012ac3a198 100644
--- a/lisp/net/tramp-archive.el
+++ b/lisp/net/tramp-archive.el
@@ -287,6 +287,9 @@ pass to the OPERATION."
287 (tramp-compat-user-error nil "Package `tramp-archive' not supported")) 287 (tramp-compat-user-error nil "Package `tramp-archive' not supported"))
288 (let ((tramp-methods (cons `(,tramp-archive-method) tramp-methods)) 288 (let ((tramp-methods (cons `(,tramp-archive-method) tramp-methods))
289 (tramp-gvfs-methods tramp-archive-all-gvfs-methods) 289 (tramp-gvfs-methods tramp-archive-all-gvfs-methods)
290 ;; Set uid and gid. gvfsd-archive could do it, but it doesn't.
291 (tramp-unknown-id-integer (user-uid))
292 (tramp-unknown-id-string (user-login-name))
290 (fn (assoc operation tramp-archive-file-name-handler-alist))) 293 (fn (assoc operation tramp-archive-file-name-handler-alist)))
291 (when (eq (cdr fn) 'tramp-archive-handle-not-implemented) 294 (when (eq (cdr fn) 'tramp-archive-handle-not-implemented)
292 (setq args (cons operation args))) 295 (setq args (cons operation args)))
@@ -583,9 +586,11 @@ offered."
583 586
584;;; TODO: 587;;; TODO:
585 588
586;; * See, whether we could retrieve better file attributes like uid, 589;; * Check, whether we could retrieve better file attributes like uid,
587;; gid, permissions. 590;; gid, permissions. See gvfsbackendarchive.c
591;; (archive_file_set_info_from_entry), where it is commented out.
588;; 592;;
589;; * Implement write access, when possible. 593;; * Implement write access, when possible.
594;; https://bugzilla.gnome.org/show_bug.cgi?id=589617
590 595
591;;; tramp-archive.el ends here 596;;; tramp-archive.el ends here