>>>>> "SY" == Steve Youngs <youngs@...> 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 <sperber@...> writes:
>>>>>>> "SY" == Steve Youngs <youngs@...> writes:
SY> ,----[ resulting Dired buffer (whitespace removed for readability ]
SY> | /[sm/root@...:
SY> | lrwxrwxrwx 1 root root 10 Jan 12 12:07 /root/temp-sym -> /root/temp
MS> I see the contents of the directory out here.
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 uname -a
SunOS observer 5.7 Generic_106541-17 sun4u sparc
observer ls -l temp-sym/
lrwxr-xr-x 1 sperber WSIstud 4 Feb 9 16:23 temp-sym -> temp/
For comparison, on FreeBSD:
sams uname -a
FreeBSD sams 4.3-RELEASE FreeBSD 4.3-RELEASE #1: Mon May 7 13:35:27 MST 2001
sams ls -l temp-sym/
(The deeper reason is that Solaris doesn't think the symlink with a
slash appended is a directory, so it actually happens at the
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 ls -l temp-sym/.
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