Fixed strange bug that prevented a lock from ever being obtained if getting
authorJon Steinhart <jon@fourwinds.com>
Tue, 12 Oct 2004 20:40:25 +0000 (20:40 +0000)
committerJon Steinhart <jon@fourwinds.com>
Tue, 12 Oct 2004 20:40:25 +0000 (20:40 +0000)
commit3162c1b16d85ce6590bb839fd25378a28c005afc
treeb30e2c5f43a95a3c049dbda96a1cfe795dc5001c
parent745645022b8e7ff0c21cba33776bc890986b3361
Fixed strange bug that prevented a lock from ever being obtained if getting
it failed the first time.  The problem was that the string of XXXXXX that
is required by mkstemp() was overwritten the first time through, and so
all subsequent times failed because mkstemp() failed.  The fix
reinitializes the tmp file string.
sbr/lock_file.c