blob: ec5219761c05a5cdce66d8206847d407b9f7feb0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
diff -r -u -N geomyidae/main.c geomyidae-journald/main.c
--- geomyidae/main.c 2018-08-26 14:10:15.625690876 +0200
+++ geomyidae-journald/main.c 2018-08-26 18:52:59.695600426 +0200
@@ -470,7 +470,12 @@
}
if (logfile != NULL) {
- glfd = open(logfile, O_APPEND | O_WRONLY | O_CREAT, 0644);
+ if (strncasecmp(logfile, "stdout", 6) == 0) {
+ glfd = 1;
+ }
+ else {
+ glfd = open(logfile, O_APPEND | O_WRONLY | O_CREAT, 0644);
+ }
if (glfd < 0) {
perror("log");
return 1;
|