From bffdfdcb28354bc0565e5b70134fd98fcbf97f3b Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Fri, 8 Jul 2016 13:18:53 -0500 Subject: [PATCH] Fix GetUser routine in makeBaseApp.pl --- src/makeBaseApp/makeBaseApp.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/makeBaseApp/makeBaseApp.pl b/src/makeBaseApp/makeBaseApp.pl index b53a0541e..13d749d4c 100644 --- a/src/makeBaseApp/makeBaseApp.pl +++ b/src/makeBaseApp/makeBaseApp.pl @@ -418,7 +418,8 @@ EOF } sub GetUser { - $user = $opt_u || $ENV{USER} || $ENV{USERNAME} || Win32::LoginName(); + $user = $opt_u || $ENV{USER} || $ENV{USERNAME} || getlogin(); + $user = Win32::LoginName() if !$user && $^ eq 'MSWin32'; unless ($user) { print "Strange, I cannot figure out your user name!\n";