Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit01deec5

Browse files
committed
Return a value from Install.pm's lcopy function
Commit3a7cc72 was a little over eager about adding an explicit returnto this function, whose value is checked in most call sites. This changereverses that and returns the expected value explicitly. It also adds acheck to the one call site lacking one.
1 parent6a75b58 commit01deec5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/tools/msvc/Install.pm

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,10 +37,10 @@ sub lcopy
3737
unlink$target || confess"Could not delete$target\n";
3838
}
3939

40-
copy($src,$target)
40+
(my$retval =copy($src,$target))
4141
|| confess"Could not copy$src to$target\n";
4242

43-
return;
43+
return$retval;
4444
}
4545

4646
subInstall
@@ -200,7 +200,7 @@ sub CopyFiles
200200
print".";
201201
$f =$basedir .$f;
202202
die"No file$f\n"if (!-f$f);
203-
lcopy($f,$target . basename($f));
203+
lcopy($f,$target . basename($f)) || croak"Could not copy$f:$!\n";
204204
}
205205
print"\n";
206206
return;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp