summaryrefslogtreecommitdiff
path: root/geomyidae-git/geomyidae-journald.patch
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-17 11:14:56 +0200
committerDeposite Pirate2018-09-17 11:14:56 +0200
commit39206fc146510b3661776665ac2c4634a19d4a1e (patch)
treef8236e8db570639f2a2f80b411723c8436b26f18 /geomyidae-git/geomyidae-journald.patch
parentf67beb10ba5118ef847a12c3e6f64187f9fbab1a (diff)
Add geomyidae-git.
Diffstat (limited to 'geomyidae-git/geomyidae-journald.patch')
-rw-r--r--geomyidae-git/geomyidae-journald.patch17
1 files changed, 17 insertions, 0 deletions
diff --git a/geomyidae-git/geomyidae-journald.patch b/geomyidae-git/geomyidae-journald.patch
new file mode 100644
index 0000000..ec52197
--- /dev/null
+++ b/geomyidae-git/geomyidae-journald.patch
@@ -0,0 +1,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;