0001-main.c-add-newline-to-logfile-openning-error-message.patch 788 B

123456789101112131415161718192021222324252627
  1. From 2710bc67cd920323da9b23a3d60193577bd43d71 Mon Sep 17 00:00:00 2001
  2. From: Carlos Santos <unixmania@gmail.com>
  3. Date: Sat, 20 Jul 2019 00:27:31 -0300
  4. Subject: [PATCH] main.c: add newline to logfile opening error message
  5. Signed-off-by: Carlos Santos <unixmania@gmail.com>
  6. [Upstream status: https://github.com/dubiousjim/dcron/pull/22]
  7. ---
  8. main.c | 2 +-
  9. 1 file changed, 1 insertion(+), 1 deletion(-)
  10. diff --git a/main.c b/main.c
  11. index 0eba280..2606db8 100644
  12. --- a/main.c
  13. +++ b/main.c
  14. @@ -261,7 +261,7 @@ main(int ac, char **av)
  15. dup2(fd, 2);
  16. } else {
  17. int n = errno;
  18. - fdprintf(2, "failed to open logfile '%s', reason: %s", LogFile, strerror(n));
  19. + fdprintf(2, "failed to open logfile '%s', reason: %s\n", LogFile, strerror(n));
  20. exit(n);
  21. }
  22. }
  23. --
  24. 2.18.1