e6a3c04669
- Mark unbroken. - Update the MASTER_SITES.
28 lines
564 B
Plaintext
28 lines
564 B
Plaintext
--- sbr/lock_file.c.orig Sun Sep 12 06:50:12 1999
|
|
+++ sbr/lock_file.c Tue Feb 29 18:11:50 2000
|
|
@@ -463,16 +463,18 @@
|
|
else
|
|
snprintf (li->tmplock, sizeof(li->tmplock), "%.*s,LCK.XXXXXX",
|
|
cp - li->curlock, li->curlock);
|
|
-/*
|
|
- Mkstemp work postponed until later -Doug
|
|
#ifdef HAVE_MKSTEMP
|
|
- mkstemp (li->tmplock);
|
|
+ {
|
|
+ int lockfd;
|
|
+
|
|
+ lockfd = mkstemp (li->tmplock);
|
|
+ if (lockfd == -1)
|
|
+ return;
|
|
+ close (lockfd);
|
|
+ }
|
|
#else
|
|
-*/
|
|
mktemp (li->tmplock);
|
|
-/*
|
|
#endif
|
|
-*/
|
|
|
|
unlink (li->tmplock); /* remove any stray */
|
|
}
|