]> arthur.barton.de Git - bup.git/commitdiff
Avoid partial writes of config/config.h.
authorRob Browning <rlb@defaultvalue.org>
Thu, 10 Jan 2013 02:23:08 +0000 (20:23 -0600)
committerRob Browning <rlb@defaultvalue.org>
Sun, 27 Jan 2013 23:06:48 +0000 (17:06 -0600)
Write to config/config.h.tmp first, then rename it to config/config.h
once it's complete to avoid the possibility of a partially written
file.

Thanks to Paul Schulz <pschulz01@gmail.com> for reporting the problem.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Reviewed-by: Zoran Zaric <zz@zoranzaric.de>

No differences found