Michael Albinus <[EMAIL PROTECTED]> writes: > Ferenc Wagner <[EMAIL PROTECTED]> writes: > >>>> And really, >>>> >>>> (file-modes "diag.txt") => nil >>>> (file-modes "/tmp/#diag.txt#") => 436 >>> >>> That's what I suspected. The fix would be simple (call `set-file-modes� >>> only when `file-modes� returns non-nil). >>> >>> Nevertheless, I'm curious to know why (file-modes "diag.txt") returned >>> nil. Could you, please, give me the full Tramp file name of >>> "diag.txt"? Mainly, I'm interested in the access method. >> >> Sure: /ssh:csoki:/home/wferi/anulus_reports/diag.txt >> >> The remote machine is FreeBSD 5.3-STABLE, btw. > > Still strange. `file-modes' should always return a valid value in the > ssh case.
I don't quite get it. `file-modes' is a primitive, is Tramp invasive enough to deceive it? Eh, nevermind. > But so what, I've fixed your initial problem in Tramp CVS. If you want > to test it yourself you might apply the appended patch to tramp.el > (note that there are other fixes since Tramp 2.0.48, too). The fix will > be included in Tramp 2.0.49. Thanks a lot, I applied the patch, which seems to work wonderfully. -- Feri.

