Set LC_ALL in both local and remote shells so that sorted output
authordtucker <dtucker@openbsd.org>
Thu, 13 Jan 2022 04:53:16 +0000 (04:53 +0000)
committerdtucker <dtucker@openbsd.org>
Thu, 13 Jan 2022 04:53:16 +0000 (04:53 +0000)
matches regardless of what the user's shell sets it to.  ok djm@

regress/usr.bin/ssh/agent-restrict.sh

index cd8486e..a30aed7 100644 (file)
@@ -1,4 +1,4 @@
-#      $OpenBSD: agent-restrict.sh,v 1.4 2022/01/13 04:22:10 dtucker Exp $
+#      $OpenBSD: agent-restrict.sh,v 1.5 2022/01/13 04:53:16 dtucker Exp $
 #      Placed in the Public Domain.
 
 tid="agent restrictions"
@@ -52,6 +52,10 @@ done
 cat $OBJ/ssh_proxy.bak >> $OBJ/ssh_proxy
 cat $OBJ/ssh_proxy.bak >> $OBJ/ssh_proxy_noid
 
+LC_ALL=C
+export LC_ALL
+echo "SetEnv LC_ALL=${LC_ALL}" >> sshd_proxy
+
 verbose "prepare known_hosts"
 rm -f $OBJ/known_hosts
 for h in a b c x ; do