mirror of
https://repo.or.cz/socat.git
synced 2024-12-23 07:52:32 +00:00
socat option -lf did not log to file
This commit is contained in:
parent
7a09331db7
commit
75e643ad2d
1 changed files with 1 additions and 1 deletions
2
error.c
2
error.c
|
@ -128,8 +128,8 @@ void diag_set(char what, const char *arg) {
|
||||||
}
|
}
|
||||||
if ((diagopts.logfile = fopen(arg, "a")) == NULL) {
|
if ((diagopts.logfile = fopen(arg, "a")) == NULL) {
|
||||||
Error2("cannot open log file \"%s\": %s", arg, strerror(errno));
|
Error2("cannot open log file \"%s\": %s", arg, strerror(errno));
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
case 's':
|
case 's':
|
||||||
if (diagopts.logfile != NULL && diagopts.logfile != stderr) {
|
if (diagopts.logfile != NULL && diagopts.logfile != stderr) {
|
||||||
fclose(diagopts.logfile);
|
fclose(diagopts.logfile);
|
||||||
|
|
Loading…
Reference in a new issue