1fa5bce6a9
fix several vulnerabilites; http://www.vuxml.org/openbsd/4ccf3184-812c-11d9-b5a5-080020fe8945.html via/from Gentoo
13 lines
403 B
Plaintext
13 lines
403 B
Plaintext
$OpenBSD: patch-edit_editcmd_c,v 1.1 2005/02/17 21:59:11 robert Exp $
|
|
--- edit/editcmd.c.orig Thu Feb 17 22:33:12 2005
|
|
+++ edit/editcmd.c Thu Feb 17 22:33:30 2005
|
|
@@ -247,7 +247,7 @@
|
|
g_free (savedir);
|
|
fd = mc_mkstemps (&savename, saveprefix, NULL);
|
|
g_free (saveprefix);
|
|
- if (!savename)
|
|
+ if (fd == -1)
|
|
return 0;
|
|
/* FIXME:
|
|
* Close for now because mc_mkstemps use pure open system call
|