Hello,
I would like to submit a small patch for "symlinks" which makes
"symlinks -c -s" work as expected, i.e. an absolute link is not only
converted to relative, but also shortened. This fixes the annoying
problem of having to run "symlinks -cs" twice. It is rather simple, just
a two-liner:
------------------------------------------------------------
diff -u symlinks-1.2-old/symlinks.c symlinks-1.2/symlinks.c
--- symlinks-1.2-old/symlinks.c 2005-07-06 20:01:53.000000000 +0200
+++ symlinks-1.2/symlinks.c 2005-07-06 20:47:34.000000000 +0200
@@ -238,6 +238,8 @@
}
strcpy (np, tail);
(void) tidy_path(new);
+ if (shorten)
+ shorten_path(new, path);
}
if (!testing) {
if (unlink (path)) {
------------------------------------------------------------
I have tested it a little bit and I'm confident it works, so it may
included in the next release of the Debian symlinks package. That
would not only close this bug, but also #153496, which is in fact all
about the same subject.
Of course, it should also be forwarded to the upstream author, but he
has not come up with a new release for more than eight years...
Regards,
Sven Joachim
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]