[arch-commits] Commit in cronie (2 files)

Christian Hesse eworm at archlinux.org
Thu Oct 31 21:11:06 UTC 2019


    Date: Thursday, October 31, 2019 @ 21:11:05
  Author: eworm
Revision: 366305

clean up unused patch

Deleted:
  cronie/repos/testing-x86_64/0001-do-not-log-carriage-return.patch
  cronie/trunk/0001-do-not-log-carriage-return.patch

------------------------------------------------------------+
 repos/testing-x86_64/0001-do-not-log-carriage-return.patch |   35 -----------
 trunk/0001-do-not-log-carriage-return.patch                |   35 -----------
 2 files changed, 70 deletions(-)

Deleted: repos/testing-x86_64/0001-do-not-log-carriage-return.patch
===================================================================
--- repos/testing-x86_64/0001-do-not-log-carriage-return.patch	2019-10-31 20:38:22 UTC (rev 366304)
+++ repos/testing-x86_64/0001-do-not-log-carriage-return.patch	2019-10-31 21:11:05 UTC (rev 366305)
@@ -1,35 +0,0 @@
-From cdc44c2b78ae88bf62bb870969ba814d3a79e71c Mon Sep 17 00:00:00 2001
-From: Christian Hesse <mail at eworm.de>
-Date: Mon, 9 Sep 2019 10:17:32 +0200
-Subject: [PATCH 1/1] do not log carriage return
-
-Some commands (like ssh) end their output with carriage return (\r) and
-new line (\n). Just cutting the new line before sending to syslog may
-have undesired effects of unprintable characters. Reading cronie logs
-with journalctl I can see:
-
-Sep 06 16:50:01 linux CROND[152575]: [96B blob data]
-
-Adding switch --all for unprintable characters it shows:
-
-Sep 06 16:50:01 linux CROND[152575]: (root) CMDOUT (Warning: Permanently
-added '10.52.33.217' (ED25519) to the list of known hosts.^M)
-
-Just skip carriage return for syslog to prevent this.
----
- src/do_command.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/do_command.c b/src/do_command.c
-index 45c49f7..ed56775 100644
---- a/src/do_command.c
-+++ b/src/do_command.c
-@@ -506,6 +506,8 @@ static int child_process(entry * e, char **jobenv) {
- 			 */
- 
- 			while (EOF != (ch = getc(in))) {
-+				if (ch == '\r')
-+					continue;
- 				bytes++;
- 				if (mail)
- 					putc(ch, mail);

Deleted: trunk/0001-do-not-log-carriage-return.patch
===================================================================
--- trunk/0001-do-not-log-carriage-return.patch	2019-10-31 20:38:22 UTC (rev 366304)
+++ trunk/0001-do-not-log-carriage-return.patch	2019-10-31 21:11:05 UTC (rev 366305)
@@ -1,35 +0,0 @@
-From cdc44c2b78ae88bf62bb870969ba814d3a79e71c Mon Sep 17 00:00:00 2001
-From: Christian Hesse <mail at eworm.de>
-Date: Mon, 9 Sep 2019 10:17:32 +0200
-Subject: [PATCH 1/1] do not log carriage return
-
-Some commands (like ssh) end their output with carriage return (\r) and
-new line (\n). Just cutting the new line before sending to syslog may
-have undesired effects of unprintable characters. Reading cronie logs
-with journalctl I can see:
-
-Sep 06 16:50:01 linux CROND[152575]: [96B blob data]
-
-Adding switch --all for unprintable characters it shows:
-
-Sep 06 16:50:01 linux CROND[152575]: (root) CMDOUT (Warning: Permanently
-added '10.52.33.217' (ED25519) to the list of known hosts.^M)
-
-Just skip carriage return for syslog to prevent this.
----
- src/do_command.c | 2 ++
- 1 file changed, 2 insertions(+)
-
-diff --git a/src/do_command.c b/src/do_command.c
-index 45c49f7..ed56775 100644
---- a/src/do_command.c
-+++ b/src/do_command.c
-@@ -506,6 +506,8 @@ static int child_process(entry * e, char **jobenv) {
- 			 */
- 
- 			while (EOF != (ch = getc(in))) {
-+				if (ch == '\r')
-+					continue;
- 				bytes++;
- 				if (mail)
- 					putc(ch, mail);



More information about the arch-commits mailing list