| 1 |
From 19b95cdd1d14a1e7d1abba1880ab023c96f19bf5 Mon Sep 17 00:00:00 2001
|
| 2 |
From: Matthieu Herrb <matthieu@bluenote.herrb.com>
|
| 3 |
Date: Thu, 17 Jan 2008 17:03:39 +0100
|
| 4 |
Subject: [PATCH] Fix for CVE-2007-5958 - File existence disclosure.
|
| 5 |
|
| 6 |
---
|
| 7 |
Xext/security.c | 4 ++--
|
| 8 |
1 files changed, 2 insertions(+), 2 deletions(-)
|
| 9 |
|
| 10 |
diff --git a/Xext/security.c b/Xext/security.c
|
| 11 |
index ba057de..e9d48c9 100644
|
| 12 |
--- a/Xext/security.c
|
| 13 |
+++ b/Xext/security.c
|
| 14 |
@@ -1563,7 +1563,7 @@ SecurityLoadPropertyAccessList(void)
|
| 15 |
if (!SecurityPolicyFile)
|
| 16 |
return;
|
| 17 |
|
| 18 |
- f = fopen(SecurityPolicyFile, "r");
|
| 19 |
+ f = Fopen(SecurityPolicyFile, "r");
|
| 20 |
if (!f)
|
| 21 |
{
|
| 22 |
ErrorF("error opening security policy file %s\n",
|
| 23 |
@@ -1646,7 +1646,7 @@ SecurityLoadPropertyAccessList(void)
|
| 24 |
}
|
| 25 |
#endif /* PROPDEBUG */
|
| 26 |
|
| 27 |
- fclose(f);
|
| 28 |
+ Fclose(f);
|
| 29 |
} /* SecurityLoadPropertyAccessList */
|
| 30 |
|
| 31 |
|
| 32 |
--
|
| 33 |
1.5.3.5
|
| 34 |
|