Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2011-02-11 21:00:55 +0300
committerChristopher Faylor <me@cgf.cx>2011-02-11 21:00:55 +0300
commit98525461c875ab0808b7bfa4787d13ee2d413c40 (patch)
treed6d3252fd60f35119ee3cfd5e31b6b8698fd8f89 /winsup/cygwin/mkstatic
parent0ff9e2473f90cb63ba8b196c7447e57686b967d2 (diff)
* mkstatic: Make sure that we are not cd'ed to temporary directory on exit to
avoid bogus warnings on directory cleanup. * speclib: Ditto. * mkimport: Ditto.
Diffstat (limited to 'winsup/cygwin/mkstatic')
-rwxr-xr-xwinsup/cygwin/mkstatic6
1 files changed, 5 insertions, 1 deletions
diff --git a/winsup/cygwin/mkstatic b/winsup/cygwin/mkstatic
index b7a81b0ad..1a488f80c 100755
--- a/winsup/cygwin/mkstatic
+++ b/winsup/cygwin/mkstatic
@@ -55,5 +55,9 @@ exit 0;
sub xsystem(@) {
print join(' ', 'x', @_), "\n" if $x;
- system(@_) == 0 or die "$0: @_[0] $_[1] $_[2]... exited with non-zero status\n";
+ system(@_) == 0 or die "$0: $_[0] $_[1] $_[2]... exited with non-zero status\n";
+}
+
+END {
+ chdir '/tmp'; # Allow $dir directory removal on Windows
}