[PATCH 1/7] winapi: Use $cwd variable instead of pwd command.

Serge Gautherie winehq-git_serge_180711 at gautherie.fr
Sat Jul 25 14:35:09 CDT 2020


Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
---
Fix to run on Windows.
Addendum to 5bc9a0b62388d22b48ca2abdc2f1cd9b2a496221.
---
 tools/winapi/setup.pm | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tools/winapi/setup.pm b/tools/winapi/setup.pm
index ed08460..f23bba1 100644
--- a/tools/winapi/setup.pm
+++ b/tools/winapi/setup.pm
@@ -54,7 +54,7 @@ BEGIN {
 
 	if($wine_dir =~ /^\./) {
 	    $current_dir = ".";
-	    my $pwd; chomp($pwd = `pwd`);
+	    my $pwd; chomp($pwd = $cwd);
 	    foreach my $n (1..((length($wine_dir) + 1) / 3)) {
 		$pwd =~ s/\/([^\/]*)$//;
 		$current_dir = "$1/$current_dir";
-- 
2.10.0.windows.1




More information about the wine-devel mailing list