Serge Gautherie : winapi: Use $cwd variable instead of pwd command.

Alexandre Julliard julliard at winehq.org
Mon Aug 10 16:16:30 CDT 2020


Module: wine
Branch: master
Commit: 49936b31b3155f5f0a76b6ebf941a4ac45b5015b
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=49936b31b3155f5f0a76b6ebf941a4ac45b5015b

Author: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Date:   Sat Jul 25 21:35:09 2020 +0200

winapi: Use $cwd variable instead of pwd command.

Signed-off-by: Serge Gautherie <winehq-git_serge_180711 at gautherie.fr>
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 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 ed0846049b..f23bba1ad1 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";




More information about the wine-cvs mailing list