[Pommed-commits] r453 - trunk/pommed
jblache at alioth.debian.org
jblache at alioth.debian.org
Sat Apr 5 16:09:18 UTC 2008
Author: jblache
Date: 2008-04-05 16:09:17 +0000 (Sat, 05 Apr 2008)
New Revision: 453
Modified:
trunk/pommed/pommed.c
Log:
Save errno for later use when trying to open the fn_mode node.
Modified: trunk/pommed/pommed.c
===================================================================
--- trunk/pommed/pommed.c 2008-04-05 16:07:48 UTC (rev 452)
+++ trunk/pommed/pommed.c 2008-04-05 16:09:17 UTC (rev 453)
@@ -385,6 +385,7 @@
void
kbd_set_fnmode(void)
{
+ int errno1;
FILE *fp;
if ((general_cfg.fnmode < 1) || (general_cfg.fnmode > 2))
@@ -393,10 +394,12 @@
fp = fopen(KBD_FNMODE_FILE, "a");
if (fp == NULL)
{
+ errno1 = 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_FILE, strerror(errno1));
logmsg(LOG_INFO, "Could not open %s: %s", KBD_FNMODE_FILE2620, strerror(errno));
return;
}
More information about the Pommed-commits
mailing list