freebsd-skq/usr.sbin/mergemaster
Doug Barton d90331f910 Fix a problem with how mergemaster handles the hard links for /.cshrc
and /.profile. The problem is that install(1) will unlink the old file
before it installs the new one, which means that in the best case we
have to compare the changes for the old file twice.

So, change the logic to first test to see if the link exists, then
install the file. Then if the link was there and we're using -i, just
create the link in /root and be done with it. Otherwise display the
message to the user and give them the option.

Because we are now sorting things before doing the comparison we can
know conclusively that the files in / should be the sources, and the
files in /root will be the targets, so adjust the paths accordingly.

While I'm here, split a too-long error message into two lines and
just return at the end of handling these files instead of setting
the variable that says "do nothing" and then returning at the end
of the function anyway.
2009-12-19 05:20:26 +00:00
..
Makefile
mergemaster.8 Don't tempt svn to expand the example $FreeBSD strings 2009-03-23 14:42:41 +00:00
mergemaster.sh Fix a problem with how mergemaster handles the hard links for /.cshrc 2009-12-19 05:20:26 +00:00