SecBSD's official ports repository
This commit is contained in:
commit
2c0afcbbf3
64331 changed files with 5339189 additions and 0 deletions
18
editors/xemacs21/stable/patches/patch-lib-src_movemail_c
Normal file
18
editors/xemacs21/stable/patches/patch-lib-src_movemail_c
Normal file
|
@ -0,0 +1,18 @@
|
|||
--- lib-src/movemail.c.orig Sun Sep 25 15:10:55 2005
|
||||
+++ lib-src/movemail.c Sun Sep 25 15:12:18 2005
|
||||
@@ -588,14 +588,12 @@ lock_dot(char *filename)
|
||||
p--;
|
||||
*p = 0;
|
||||
strcpy (p, "EXXXXXX");
|
||||
- mktemp (tempname);
|
||||
- unlink (tempname);
|
||||
|
||||
for (;;)
|
||||
{
|
||||
/* Create the lock file, but not under the lock file name. */
|
||||
/* Give up if cannot do that. */
|
||||
- desc = open (tempname, O_WRONLY | O_CREAT | O_EXCL, 0666);
|
||||
+ desc = mkstemp (tempname);
|
||||
if (desc < 0)
|
||||
{
|
||||
char *message = (char *) xmalloc (strlen (tempname) + 50);
|
Loading…
Add table
Add a link
Reference in a new issue