forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ports: Update freeciv's patches to use git patches
- Loading branch information
Showing
2 changed files
with
25 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,25 @@ | ||
diff -Naur freeciv-3.0.0-beta2/client/connectdlg_common.c freeciv-3.0.0-beta2.serenity/client/connectdlg_common.c | ||
--- freeciv-3.0.0-beta2/client/connectdlg_common.c 2021-05-14 12:36:45.000000000 +0200 | ||
+++ freeciv-3.0.0-beta2.serenity/client/connectdlg_common.c 2021-06-05 00:22:43.151395241 +0200 | ||
@@ -302,6 +302,7 @@ | ||
From cbcb5538e52f9990387d4d79e676d6ef3d03fe46 Mon Sep 17 00:00:00 2001 | ||
From: Gunnar Beutner <[email protected]> | ||
Date: Fri, 4 Jun 2021 23:20:55 +0200 | ||
Subject: [PATCH] Log to /dev/null if the log file doesn't exist | ||
|
||
--- | ||
client/connectdlg_common.c | 22 ++++++++++++++-------- | ||
1 file changed, 14 insertions(+), 8 deletions(-) | ||
|
||
diff --git a/client/connectdlg_common.c b/client/connectdlg_common.c | ||
index 0afef96..d931378 100644 | ||
--- a/client/connectdlg_common.c | ||
+++ b/client/connectdlg_common.c | ||
@@ -302,6 +302,7 @@ bool client_start_server(void) | ||
char dbg_lvl_buf[32]; /* Do not move this inside the block where it gets filled, | ||
* it's needed via the argv[x] pointer later on, so must | ||
* remain in scope. */ | ||
+ bool log_to_dev_null = FALSE; | ||
|
||
/* Set up the command-line parameters. */ | ||
fc_snprintf(port_buf, sizeof(port_buf), "%d", internal_server_port); | ||
@@ -376,16 +377,21 @@ | ||
@@ -376,16 +377,21 @@ bool client_start_server(void) | ||
fclose(stdout); | ||
fclose(stderr); | ||
|
||
|
@@ -39,3 +49,6 @@ diff -Naur freeciv-3.0.0-beta2/client/connectdlg_common.c freeciv-3.0.0-beta2.se | |
fchmod(1, 0644); | ||
} | ||
|
||
-- | ||
2.36.1 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
# Patches for freeciv on SerenityOS | ||
|
||
## `0001-Log-to-dev-null-if-the-log-file-doesn-t-exist.patch` | ||
|
||
Log to /dev/null if the log file doesn't exist | ||
|
||
|