[v2] package/dcron: add patch to fix error message
diff mbox series

Message ID 20190722002410.6707-1-unixmania@gmail.com
State Accepted
Headers show
Series
  • [v2] package/dcron: add patch to fix error message
Related show

Commit Message

Carlos Santos July 22, 2019, 12:24 a.m. UTC
From: Carlos Santos <unixmania@gmail.com>

The error message issued when the creation of the log file fails lacks
an ending newline. Add a patch already submitted upstream[1] to fix it.

1. https://github.com/dubiousjim/dcron/pull/22

Signed-off-by: Carlos Santos <unixmania@gmail.com>
---
Changes v1->v2:
  - Add SOB
---
 ...ne-to-logfile-openning-error-message.patch | 26 +++++++++++++++++++
 1 file changed, 26 insertions(+)
 create mode 100644 package/dcron/0001-main.c-add-newline-to-logfile-openning-error-message.patch

Comments

Arnout Vandecappelle Aug. 3, 2019, 6:31 p.m. UTC | #1
On 22/07/2019 02:24, unixmania@gmail.com wrote:
> From: Carlos Santos <unixmania@gmail.com>
> 
> The error message issued when the creation of the log file fails lacks
> an ending newline. Add a patch already submitted upstream[1] to fix it.
> 
> 1. https://github.com/dubiousjim/dcron/pull/22
> 
> Signed-off-by: Carlos Santos <unixmania@gmail.com>

 Applied to master, thanks.

 Regards,
 Arnout

Patch
diff mbox series

diff --git a/package/dcron/0001-main.c-add-newline-to-logfile-openning-error-message.patch b/package/dcron/0001-main.c-add-newline-to-logfile-openning-error-message.patch
new file mode 100644
index 0000000000..c838063e03
--- /dev/null
+++ b/package/dcron/0001-main.c-add-newline-to-logfile-openning-error-message.patch
@@ -0,0 +1,26 @@ 
+From 2710bc67cd920323da9b23a3d60193577bd43d71 Mon Sep 17 00:00:00 2001
+From: Carlos Santos <unixmania@gmail.com>
+Date: Sat, 20 Jul 2019 00:27:31 -0300
+Subject: [PATCH] main.c: add newline to logfile openning error message
+
+Signed-off-by: Carlos Santos <unixmania@gmail.com>
+---
+ main.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/main.c b/main.c
+index 0eba280..2606db8 100644
+--- a/main.c
++++ b/main.c
+@@ -261,7 +261,7 @@ main(int ac, char **av)
+ 				dup2(fd, 2);
+ 			} else {
+ 				int n = errno;
+-				fdprintf(2, "failed to open logfile '%s', reason: %s", LogFile, strerror(n));
++				fdprintf(2, "failed to open logfile '%s', reason: %s\n", LogFile, strerror(n));
+ 				exit(n);
+ 			}
+ 		}
+-- 
+2.18.1
+