From: Steve Y. <yo...@xe...> - 2002-02-10 00:32:55
|
[Revisiting Tramp/symlink problem] [tramp-devel added to Cc list] [For those who aren't aware, Michael is the XEmacs Dired (& EFS) maintainer.] |--==> "MS" == Michael Sperber <sp...@in...> writes: MS> Hi Steve, MS> sorry for the huge delay. I'm slowly getting back on track: That's cool. >>>>>>"SY" == Steve Youngs <yo...@xe...> writes: SY> The test: SY> - C-x d /[sm/root@localhost]temp-sym/ RET MS> Did exactly that, with "sm" replaced by "scp". For some reason, "sm" MS> isn't working. But that shouldn't make a difference, right? No it shouldn't make a difference. I get the same wrong behaviour with either method. I do wonder why "sm" isn't working for you though? Something to look at later... SY> ,----[ resulting Dired buffer (whitespace removed for readability ] SY> | /[sm/root@localhost]/root/temp-sym: SY> | lrwxrwxrwx 1 root root 10 Jan 12 12:07 /root/temp-sym -> /root/temp SY> `---- MS> I see the contents of the directory out here. Bugger! MS> You haven't fixed the problem by yourself in the meantime, by MS> any chance? (Judging from the impressive number of package MS> commits you've done, I'm not sure. But I don't see anything in MS> the changelogs.) No. MS> What kind of host operating system is this? (Solaris, by any chance? MS> A few operations related to symlinks, directories, and trailing MS> slashes are fucked on that platform.) GNU/Linux 2.4.17 (local). But I also see it on SunSITE.dk (SunOS 5.8). Oh God, I've just noticed that it works correctly on gwyn.tux.org (GNU/Linux 2.4.1). It seems that the more I delve into this, the more complicated it's getting. :-( -- |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<yo...@xe...>---| |
From: <sp...@in...> - 2002-02-11 13:04:47
|
>>>>> "SY" == Steve Youngs <yo...@xe...> writes: SY> [Revisiting Tramp/symlink problem] SY> [tramp-devel added to Cc list] SY> [For those who aren't aware, Michael is the XEmacs Dired (& EFS) maintainer.] SY> |--==> "MS" == Michael Sperber <sp...@in...> writes: >>>>>>> "SY" == Steve Youngs <yo...@xe...> writes: SY> ,----[ resulting Dired buffer (whitespace removed for readability ] SY> | /[sm/root@localhost]/root/temp-sym: SY> | lrwxrwxrwx 1 root root 10 Jan 12 12:07 /root/temp-sym -> /root/temp SY> `---- MS> I see the contents of the directory out here. SY> Bugger! MS> What kind of host operating system is this? (Solaris, by any chance? MS> A few operations related to symlinks, directories, and trailing MS> slashes are fucked on that platform.) SY> GNU/Linux 2.4.17 (local). But I also see it on SunSITE.dk (SunOS SY> 5.8). Oh God, I've just noticed that it works correctly on SY> gwyn.tux.org (GNU/Linux 2.4.1). SY> It seems that the more I delve into this, the more complicated it's SY> getting. :-( It's actually quite simple. Solaris has similar breakage. Dired calls `insert-directory' which gets relegated to Tramp. Tramp, in turn, calls "ls -l <the directory>/" remotely. On Solaris, for instance, this is fucked: observer[34] uname -a SunOS observer 5.7 Generic_106541-17 sun4u sparc observer[35] ls -l temp-sym/ lrwxr-xr-x 1 sperber WSIstud 4 Feb 9 16:23 temp-sym -> temp/ For comparison, on FreeBSD: sams[42] uname -a FreeBSD sams 4.3-RELEASE FreeBSD 4.3-RELEASE #1: Mon May 7 13:35:27 MST 2001 sperber@sams:/usr/local/src/sys/compile/SAMS i386 sams[43] ls -l temp-sym/ total 91437 [...] (The deeper reason is that Solaris doesn't think the symlink with a slash appended is a directory, so it actually happens at the system-call level.) So I'm afraid this isn't Dired's fault, nor is it, strictly, Tramp's. The solution is to append a "." at the end: observer[36] ls -l temp-sym/. total 45917 [...] This would have to be done by Tramp in order to preserve the semantics of `insert-directory', I think. This fuckage only goes to show that the entire file-names-as-strings business is doomed from the outset, and unde Unix in particular, but there we are. -- Cheers =8-} Mike Friede, Völkerverständigung und überhaupt blabla |
From: Steve Y. <yo...@xe...> - 2002-02-12 01:47:28
|
|--==> "MS" == Michael Sperber <sp...@in...> writes: MS> So I'm afraid this isn't Dired's fault, nor is it, strictly, Tramp's. MS> The solution is to append a "." at the end: Thanks, Mike! Patch on it's way (for Tramp). -- |---<Steve Youngs>---------------<GnuPG KeyID: 10D5C9C5>---| | XEmacs - It's not just an editor. | | It's a way of life. | |------------------------------------<yo...@xe...>---| |