0004-Fix-build-with-latest-glibc.patch 770 B

12345678910111213141516171819202122
  1. Fix build with latest glibc
  2. Fixes:
  3. - http://autobuild.buildroot.net/results/c7de1a1d01edced2098a804ad87dcb67b5dc6832
  4. Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
  5. diff -durN duma_2_5_15.orig/print.c duma_2_5_15/print.c
  6. --- duma_2_5_15.orig/print.c 2019-10-28 10:21:14.080149620 +0100
  7. +++ duma_2_5_15/print.c 2019-10-28 10:22:01.256151561 +0100
  8. @@ -326,9 +326,9 @@
  9. if(DUMA_OUTPUT_FILE != NULL)
  10. {
  11. #if defined(WIN32) && !defined(__CYGWIN__)
  12. - fd = _open(DUMA_OUTPUT_FILE, _O_APPEND|_O_CREAT|_O_WRONLY);
  13. + fd = _open(DUMA_OUTPUT_FILE, _O_APPEND|_O_CREAT|_O_WRONLY, 0600);
  14. #else
  15. - fd = open(DUMA_OUTPUT_FILE, O_APPEND|O_CREAT|O_WRONLY);
  16. + fd = open(DUMA_OUTPUT_FILE, O_APPEND|O_CREAT|O_WRONLY, 0600);
  17. #endif
  18. if ( fd >= 0 )
  19. {