With mhstore -clobber auto/suffix, when looking for a new filename,
authorDavid Levine <levinedl@acm.org>
Sun, 16 Sep 2012 18:54:23 +0000 (13:54 -0500)
committerDavid Levine <levinedl@acm.org>
Sun, 16 Sep 2012 18:54:23 +0000 (13:54 -0500)
commit2b7b705f7d986903b6e2190b559e7211e8e79f49
tree7182862949e20bf6d62ccbddef97c1530f2a5baa
parent9b70e8396d50989db2177547515594bc15ee8b17
With mhstore -clobber auto/suffix, when looking for a new filename,
actually open(2) the file with O_CREAT | O_EXCL to avoid the race
condition when figuring out the filename first and opening it later.
uip/mhstoresbr.c