Hi,
install --help says it will just "copy SOURCE to DEST", so one would
expect to behave like cp and not break hard links.
However, because unlink_dest_before_opening is set to true, this will
break links. Unless you notice about this, it's quite a problem when
you do something like:
install -s ./fubar /big_template_for_building_chroots/usr/bin/fubar
and find that /big_template_for_building_chroots/usr/bin/fubar no
longer has a gazillon of links to all your chroots :-)
I haven't checked POSIX though, but if this is actualy a requirement
maybe a POSIX_ME_HARDER hack would make sense here?
Thanks
--
Robert Millan
ACK STORM, S.L. - http://www.ackstorm.es/
--- install.c~ 2005-09-23 22:50:49.000000000 +0200
+++ install.c 2007-02-20 12:37:20.000000000 +0100
@@ -129,7 +129,7 @@
{
x->copy_as_regular = true;
x->dereference = DEREF_ALWAYS;
- x->unlink_dest_before_opening = true;
+ x->unlink_dest_before_opening = false;
x->unlink_dest_after_failed_open = false;
x->hard_link = false;
x->interactive = I_UNSPECIFIED;
_______________________________________________
Bug-coreutils mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-coreutils