[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boot par
From: |
Michael Albinus |
Subject: |
Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boot partition |
Date: |
Mon, 21 Dec 2020 15:58:34 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) |
"Yikai Zhao" <i@blahgeek.com> writes:
Hi,
> I think this should be a fairly common use case (everyone's boot
> partition must be a FAT filesystem, right?) and it would be great to
> see it resolved by tramp.
It doesn't seem to be fairly common. Otherwise, I would have seen such
bug reports the last 20 years.
> Can we maybe detect this kind of error (by parsing the output of cp?)
> to ignore it? Or can we detect the destination filesystem type to drop
> the "-p" argument of cp? Or, at the very least, can we have a
> buffer-local option to control the arguments of the cp command?
Well, Tramp is just a stupid library, it does what it is instructed to do.
"cp -f -p ..." is applied only if there is a function call (copy-file ...)
with non-nil PRESERVE-UID-GID (see docstring of copy-file).
What happens if you apply the appended patch?
Best regards, Michael.
txtsQqpfwqcjk.txt
Description: Text Data
Best regards, Michael.
- tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boot partition, Yikai Zhao, 2020/12/19
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boo t partition, Michael Albinus, 2020/12/19
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boo t partition, Yikai Zhao, 2020/12/20
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boo t partition, Michael Albinus, 2020/12/21
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boo t partition, Yikai Zhao, 2020/12/21
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boo t partition, Michael Albinus, 2020/12/21
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boot partition, Yikai Zhao, 2020/12/21
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boot partition,
Michael Albinus <=
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boot partition, Yikai Zhao, 2020/12/21
- Re: tramp (2.5.0-pre nil/nil); Cannot write to /sudo::file in /boot partition, Michael Albinus, 2020/12/21