[Pcsclite-cvs-commit] r2719 - /trunk/PCSC/src/pcscdaemon.c
rousseau at users.alioth.debian.org
rousseau at users.alioth.debian.org
Thu Jan 3 14:40:29 UTC 2008
Author: rousseau
Date: Thu Jan 3 14:40:29 2008
New Revision: 2719
URL: http://svn.debian.org/wsvn/pcsclite/?sc=1&rev=2719
Log:
return EXIT_SUCCESS (instead of EXIT_SUCCESS) if parsing
/etc/reader.conf fails.
Closes Debian bug #457665
Modified:
trunk/PCSC/src/pcscdaemon.c
Modified: trunk/PCSC/src/pcscdaemon.c
URL: http://svn.debian.org/wsvn/pcsclite/trunk/PCSC/src/pcscdaemon.c?rev=2719&op=diff
==============================================================================
--- trunk/PCSC/src/pcscdaemon.c (original)
+++ trunk/PCSC/src/pcscdaemon.c Thu Jan 3 14:40:29 2008
@@ -55,6 +55,7 @@
char AraKiri = FALSE;
static char Init = TRUE;
+static ExitValue = EXIT_SUCCESS;
int HPForceReaderPolling = 0;
/*
@@ -476,6 +477,7 @@
{
Log3(PCSC_LOG_CRITICAL, "invalid file %s: %s", newReaderConfig,
strerror(errno));
+ ExitValue = EXIT_FAILURE;
at_exit();
}
}
@@ -495,7 +497,10 @@
else
#endif
if (rv == -1)
+ {
+ ExitValue = EXIT_FAILURE;
at_exit();
+ }
}
/*
@@ -534,7 +539,7 @@
clean_temp_files();
- SYS_Exit(EXIT_SUCCESS);
+ SYS_Exit(ExitValue);
}
void clean_temp_files(void)
More information about the Pcsclite-cvs-commit
mailing list