[Pommed-commits] r285 - trunk/pommed
Yves-Alexis Perez
corsac-guest at alioth.debian.org
Tue Feb 27 22:42:55 CET 2007
Author: corsac-guest
Date: 2007-02-27 22:42:55 +0100 (Tue, 27 Feb 2007)
New Revision: 285
Modified:
trunk/pommed/pommed.c
Log:
display error only if both fopen() failed
Modified: trunk/pommed/pommed.c
===================================================================
--- trunk/pommed/pommed.c 2007-02-26 12:33:57 UTC (rev 284)
+++ trunk/pommed/pommed.c 2007-02-27 21:42:55 UTC (rev 285)
@@ -327,10 +327,10 @@
fp = fopen(KBD_FNMODE_FILE, "a");
if (fp == NULL)
{
- logmsg(LOG_INFO, "Could not open %s: %s", KBD_FNMODE_FILE, strerror(errno));
fp = fopen(KBD_FNMODE_FILE2620, "a");
if (fp == NULL)
{
+ logmsg(LOG_INFO, "Could not open %s", KBD_FNMODE_FILE);
logmsg(LOG_INFO, "Could not open %s: %s", KBD_FNMODE_FILE2620, strerror(errno));
return;
}
More information about the Pommed-commits
mailing list