1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-19 22:50:29 -08:00
emacs/lisp/net
Michael Albinus 684950eb94 Make call of remote `id' more performant in Tramp
* lisp/net/tramp-adb.el (tramp-adb-handle-file-exists-p): New defun.
(tramp-adb-file-name-handler-alist): Use it.
(tramp-adb-handle-file-executable-p)
(tramp-adb-handle-file-readable-p)
(tramp-adb-handle-file-writable-p)
(tramp-adb-handle-get-remote-uid)
(tramp-adb-handle-get-remote-gid)
(tramp-adb-handle-get-remote-groups): Use caches consequently.

* lisp/net/tramp-sh.el (tramp-perl-id, tramp-python-id): New defconsts.
(tramp-sh-handle-get-remote-uid, tramp-sh-handle-get-remote-gid)
(tramp-sh-handle-get-remote-groups): Use caches consequently.
(tramp-sh-handle-file-writable-p): Use `file-writable-p'.
(tramp-expand-script): Handle also "python" expansion.
(tramp-get-remote-id): Do not set connection property anymore,
this is done differently now.
(tramp-get-remote-uid-with-id, tramp-get-remote-uid-with-perl)
(tramp-get-remote-uid-with-python, tramp-get-remote-gid-with-id)
(tramp-get-remote-gid-with-perl)
(tramp-get-remote-gid-with-python): Remove.

* lisp/net/tramp-sudoedit.el (tramp-sudoedit-handle-file-executable-p)
(tramp-sudoedit-handle-file-exists-p)
(tramp-sudoedit-handle-file-readable-p)
(tramp-sudoedit-handle-file-writable-p):
(tramp-sudoedit-handle-get-remote-uid)
(tramp-sudoedit-handle-get-remote-gid)
(tramp-sudoedit-handle-get-remote-groups): Use caches consequently.

* lisp/net/tramp.el (tramp-check-cached-permissions):
Call `tramp-get-remote-groups' only if needed.
(tramp-get-remote-groups): Do not return default value.
(tramp-read-id-output): New defun.

* test/lisp/net/tramp-tests.el (tramp--test-deftest-with-perl):
Suppress also remote `id'.
2022-09-08 10:36:08 +02:00
..
ange-ftp.el
browse-url.el
dbus.el
dictionary-connection.el
dictionary.el Avoid using aliases for color functions 2022-08-09 22:28:08 +02:00
dig.el
dns.el
eudc-bob.el
eudc-capf.el
eudc-export.el Fix some recently introduced byte-compiler warnings 2022-08-17 12:52:56 +02:00
eudc-hotlist.el
eudc-vars.el
eudc.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
eudcb-bbdb.el
eudcb-ldap.el Make Emacs 20 compat alias obsolete in eudcb-ldap.el 2022-08-23 15:57:20 +02:00
eudcb-mab.el
eudcb-macos-contacts.el
eww.el
gnutls.el
goto-addr.el
hmac-def.el
hmac-md5.el
imap.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
ldap.el ldap-host-parameters-alist: Add auth-source option 2022-09-02 00:28:00 -04:00
mailcap.el Fix quotes in mailcap-add-mailcap-entry doc string 2022-09-02 12:09:59 +02:00
mairix.el
net-utils.el
network-stream.el
newst-backend.el
newst-plainview.el
newst-reader.el
newst-ticker.el
newst-treeview.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
newsticker.el
nsm.el
ntlm.el
pop3.el Make point-at-eol and point-at-bol obsolete 2022-08-23 04:54:57 +02:00
puny.el
rcirc.el Untabify rcirc.el 2022-09-07 11:18:32 +02:00
rfc2104.el
sasl-cram.el
sasl-digest.el
sasl-ntlm.el
sasl-scram-rfc.el
sasl-scram-sha256.el
sasl.el
secrets.el
shr-color.el
shr.el
sieve-manage.el Fix (mostly multibyte) issues in sieve-manage.el (Bug#54154) 2022-09-06 13:33:48 +02:00
sieve-mode.el
sieve.el Improve robustnes of `sieve-manage-quit' in case of errors 2022-09-06 13:33:48 +02:00
snmp-mode.el
soap-client.el
soap-inspect.el
socks.el
telnet.el
tramp-adb.el Make call of remote `id' more performant in Tramp 2022-09-08 10:36:08 +02:00
tramp-archive.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-cache.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-cmds.el Fix rx forms in Tramp 2022-09-04 13:44:30 +02:00
tramp-compat.el Use `rx' in Tramp where possible 2022-08-26 16:19:47 +02:00
tramp-crypt.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-ftp.el Use `rx' in Tramp where possible 2022-08-26 16:19:47 +02:00
tramp-fuse.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-gvfs.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-integration.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-rclone.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-sh.el Make call of remote `id' more performant in Tramp 2022-09-08 10:36:08 +02:00
tramp-smb.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-sshfs.el Use secondary groups when checking permissions in Tramp (Bug#57044) 2022-09-06 12:33:19 +02:00
tramp-sudoedit.el Make call of remote `id' more performant in Tramp 2022-09-08 10:36:08 +02:00
tramp-uu.el
tramp.el Make call of remote `id' more performant in Tramp 2022-09-08 10:36:08 +02:00
trampver.el
webjump.el
zeroconf.el