1
0
mirror of https://github.com/moparisthebest/socat synced 2024-12-21 22:48:48 -05:00

socat option -lf did not log to file

This commit is contained in:
Gerhard Rieger 2008-10-10 06:39:46 +02:00
parent 7a09331db7
commit 75e643ad2d

View File

@ -128,8 +128,8 @@ void diag_set(char what, const char *arg) {
}
if ((diagopts.logfile = fopen(arg, "a")) == NULL) {
Error2("cannot open log file \"%s\": %s", arg, strerror(errno));
break;
}
break;
case 's':
if (diagopts.logfile != NULL && diagopts.logfile != stderr) {
fclose(diagopts.logfile);