openssh-7.4_p1-test-bashism.patch 876 B

123456789101112131415161718192021222324252627282930
  1. https://lists.mindrot.org/pipermail/openssh-unix-dev/2016-December/035604.html
  2. From dca2985bff146f756b0019b17f08c35f28841a04 Mon Sep 17 00:00:00 2001
  3. From: Mike Frysinger <vapier@gentoo.org>
  4. Date: Mon, 19 Dec 2016 15:59:00 -0500
  5. Subject: [PATCH] regress/allow-deny-users.sh: fix bashism in test
  6. The test command uses = for string compares, not ==. Using some POSIX
  7. shells will reject this statement with an error about an unknown operator.
  8. ---
  9. regress/allow-deny-users.sh | 2 +-
  10. 1 file changed, 1 insertion(+), 1 deletion(-)
  11. diff --git a/regress/allow-deny-users.sh b/regress/allow-deny-users.sh
  12. index 32a269afa97c..86805e19322b 100644
  13. --- a/regress/allow-deny-users.sh
  14. +++ b/regress/allow-deny-users.sh
  15. @@ -4,7 +4,7 @@
  16. tid="AllowUsers/DenyUsers"
  17. me="$LOGNAME"
  18. -if [ "x$me" == "x" ]; then
  19. +if [ "x$me" = "x" ]; then
  20. me=`whoami`
  21. fi
  22. other="nobody"
  23. --
  24. 2.11.0.rc2