[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change
From: |
Michael Albinus |
Subject: |
bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil |
Date: |
Wed, 11 Jan 2023 14:59:39 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Michael Albinus <michael.albinus@gmx.de> writes:
Hi Jim,
> We shouldn't do this. user-uid-for-file would return the *local* uid,
> which is wrong. So please, for all handlers apply
>
>> + (user-uid-for-file . tramp-handle-user-uid-for-file)
>
> Except in tramp-archive.el, where ignore as handler seems to be appropriate.
Thinking about, I believe we need an own function for
tramp-archive.el. Something like (untested)
--8<---------------cut here---------------start------------->8---
(defun tramp-archive-user-uid-for-file (filename)
"Like `user-uid-for-file' for file archives."
(user-uid-for-file (tramp-archive-gvfs-file-name filename)))
--8<---------------cut here---------------end--------------->8---
This should return the local uid for local archives, and the remote uid
for remote archives.
Best regards, Michael.
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Jim Porter, 2023/01/10
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Ruijie Yu, 2023/01/10
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Michael Albinus, 2023/01/11
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil,
Michael Albinus <=
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Jim Porter, 2023/01/14
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Jim Porter, 2023/01/14
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Michael Albinus, 2023/01/15
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Jim Porter, 2023/01/16
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Michael Albinus, 2023/01/16
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Jim Porter, 2023/01/16
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Michael Albinus, 2023/01/17
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Jim Porter, 2023/01/17
- bug#60722: 30.0.50; [PATCH] Using Tramp to sudo in Eshell doesn't change prompt sigil, Michael Albinus, 2023/01/17