]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
Use "=" not "==" in string test.
authorDarren Tucker <dtucker@dtucker.net>
Wed, 25 Nov 2020 06:38:46 +0000 (17:38 +1100)
committerDarren Tucker <dtucker@dtucker.net>
Wed, 25 Nov 2020 06:38:46 +0000 (17:38 +1100)
POSIX says "=" is string comparison and some shells (eg HP-UX) will
complain about "==".

regress/key-options.sh

index 097f46eba4e4d9b49dd8b3d99a97032032068e85..2f3d66e2e9eacd3f5e5e6e88d509502faf9fd852 100644 (file)
@@ -9,7 +9,7 @@ cp $authkeys $origkeys
 
 # Allocating ptys can require privileges on some platforms.
 skip_pty=""
-if ! config_defined HAVE_OPENPTY && [ "x$SUDO" == "x" ]; then
+if ! config_defined HAVE_OPENPTY && [ "x$SUDO" = "x" ]; then
        skip_pty="no openpty(3) and SUDO not set"
 fi