bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

install.c: please set unlink_dest_before_opening=false


From: Robert Millan [ackstorm]
Subject: install.c: please set unlink_dest_before_opening=false
Date: Tue, 20 Feb 2007 12:43:14 +0100
User-agent: Mutt/1.5.13 (2006-08-11)

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/

Attachment: install.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]