summaryrefslogtreecommitdiffstats
path: root/sys/kern/kern_osd.c
diff options
context:
space:
mode:
authordougb <dougb@FreeBSD.org>2009-12-19 05:20:26 +0000
committerdougb <dougb@FreeBSD.org>2009-12-19 05:20:26 +0000
commit5ff872c06bb52dad2470520cac1837f27db5fd6a (patch)
tree5c64b9e64911b54a440f1cd86579f272cac62ce2 /sys/kern/kern_osd.c
parent89d1f9ba7df6e2819f6464b3a3f91a42c4e24f4f (diff)
downloadFreeBSD-src-5ff872c06bb52dad2470520cac1837f27db5fd6a.zip
FreeBSD-src-5ff872c06bb52dad2470520cac1837f27db5fd6a.tar.gz
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.
Diffstat (limited to 'sys/kern/kern_osd.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud