OpenBSD CVS

CVS log for src/usr.bin/xinstall/install.1


[BACK] Up to [local] / src / usr.bin / xinstall

Request diff between arbitrary revisions


Default branch: MAIN
Current tag: OPENBSD_6_6


Revision 1.31 / (download) - annotate - [select for diffs], Fri Feb 8 12:53:44 2019 UTC (5 years, 3 months ago) by schwarze
Branch: MAIN
CVS Tags: OPENBSD_7_5_BASE, OPENBSD_7_5, OPENBSD_7_4_BASE, OPENBSD_7_4, OPENBSD_7_3_BASE, OPENBSD_7_3, OPENBSD_7_2_BASE, OPENBSD_7_2, OPENBSD_7_1_BASE, OPENBSD_7_1, OPENBSD_7_0_BASE, OPENBSD_7_0, OPENBSD_6_9_BASE, OPENBSD_6_9, OPENBSD_6_8_BASE, OPENBSD_6_8, OPENBSD_6_7_BASE, OPENBSD_6_7, OPENBSD_6_6_BASE, OPENBSD_6_6, OPENBSD_6_5_BASE, OPENBSD_6_5, HEAD
Changes since 1.30: +9 -23 lines
Diff to previous 1.30 (colored)

Fix a race condition: do not unlink(2) a file and then open(2) it
with O_CREAT|O_EXCL; instead, always create it with a temporary name,
then rename(2) it into place atomically.  For example, the race caused
failures in parallel builds that (foolishly) install the same file twice.

This patch makes the -S option a no-op,
making install(1) always behave like -S used to.

Based on a minimally different patch
from Lauri Tirkkonen <lotheac at iki dot fi>,
and including a manual page tweak from deraadt@.

OK deraadt@; "seems the right thing to do" tedu@.

This form allows you to request diff's between any two revisions of a file. You may select a symbolic revision name using the selection box or you may type in a numeric name using the type-in text box.