gnupg-2.1.20-gpgscm-Use-shorter-socket-path-lengts-to-improve-tes.patch 1.0 KB

12345678910111213141516171819202122232425262728293031323334
  1. From e3bdb7d17264b8d5bd9abab97c96d9c4a50e4f61 Mon Sep 17 00:00:00 2001
  2. From: Kristian Fiskerstrand <kf@sumptuouscapital.com>
  3. Date: Mon, 3 Apr 2017 23:44:56 +0300
  4. Subject: [PATCH] gpgscm: Use shorter socket path lengts to improve test
  5. reliability
  6. --
  7. As socket lengths are normally restricted to 108 characters
  8. (UNIX_PATH_MAX variable in /usr/include/linux/un.h), using 42 characters
  9. by default easily results in errors.
  10. ---
  11. tests/gpgscm/tests.scm | 4 ++--
  12. 1 file changed, 2 insertions(+), 2 deletions(-)
  13. diff --git a/tests/gpgscm/tests.scm b/tests/gpgscm/tests.scm
  14. index 592b36f..f54a387 100644
  15. --- a/tests/gpgscm/tests.scm
  16. +++ b/tests/gpgscm/tests.scm
  17. @@ -273,9 +273,9 @@
  18. (canonical-path (_mkdtemp (if (null? components)
  19. (path-join
  20. (get-temp-path)
  21. - (string-append "gpgscm-" (get-isotime) "-"
  22. + (string-append "gscm"
  23. (basename-suffix *scriptname* ".scm")
  24. - "-XXXXXX"))
  25. + "XXXXXX"))
  26. (apply path-join components)))))
  27. ;; Make a temporary directory and remove it at interpreter shutdown.
  28. --
  29. 2.10.2