Use properly local variables for thread-safety.
[openssl.git] / test / tx509.com
index 7b2592f7732059221a5aa3b1c5a3411374244009..cd23a354fb59ab976bacafd06eab1ca4f0bb3a77 100644 (file)
@@ -1,7 +1,9 @@
 $! TX509.COM  --  Tests x509 certificates
 $
 $      __arch := VAX
-$      if f$getsyi("cpu") .ge. 128 then __arch := AXP
+$      if f$getsyi("cpu") .ge. 128 then -
+          __arch := f$edit( f$getsyi( "ARCH_NAME"), "UPCASE")
+$      if __arch .eqs. "" then __arch := UNK
 $      exe_dir := sys$disk:[-.'__arch'.exe.apps]
 $
 $      cmd := mcr 'exe_dir'openssl x509