Check-in Number:
|
2637 | |
Date: |
2002-Oct-21 14:45:55 (local)
2002-Oct-21 12:45:55 (UTC) |
User: | thl |
Branch: | |
Comment: |
Fixed problem reported by martin.konold@erfrakon.de:
In fsl's vsyslog() when handling delayed open and
"If the log file is not writable by fsl the application
using fsl segfaults." The error condition was checked
and logged but operation unintentionally continued. |
Tickets: |
|
Inspections: |
|
Files: |
|
ossp-pkg/fsl/fsl.c 1.50 -> 1.51
--- fsl.c 2002/08/02 11:40:00 1.50
+++ fsl.c 2002/10/21 12:45:55 1.51
@@ -883,6 +883,7 @@
if ((l2rv = l2_channel_open(ctx.l2_nch)) != L2_OK) {
cp = l2_env_strerror(ctx.l2_env, l2rv); fsldebug(L2_LEVEL_ERROR, "vsyslog: logging failed to open channel stream %s(%d) delayed", cp, l2rv);
closelog();
+ return;
}
fsldebug(L2_LEVEL_TRACE, "vsyslog: logging succeeded to open channel stream delayed");
ctx.delayopen = FALSE;
|
|