Move setting of USER further down the startup In portable we have to
authordtucker <dtucker@openbsd.org>
Sun, 8 Aug 2021 07:27:52 +0000 (07:27 +0000)
committerdtucker <dtucker@openbsd.org>
Sun, 8 Aug 2021 07:27:52 +0000 (07:27 +0000)
change this and having it in the same hunk as the CVS Id string means
applying changes fails every. single. time.

regress/usr.bin/ssh/test-exec.sh

index a0144bc..131f7d6 100644 (file)
@@ -1,7 +1,6 @@
-#      $OpenBSD: test-exec.sh,v 1.84 2021/08/08 06:38:33 dtucker Exp $
+#      $OpenBSD: test-exec.sh,v 1.85 2021/08/08 07:27:52 dtucker Exp $
 #      Placed in the Public Domain.
 
-USER=`id -un`
 #SUDO=sudo
 
 if [ ! -x "$TEST_SSH_ELAPSED_TIMES" ]; then
@@ -40,6 +39,8 @@ else
 fi
 unset SSH_AUTH_SOCK
 
+USER=`id -un`
+
 SRC=`dirname ${SCRIPT}`
 
 # defaults