diff options
author | Christopher Faylor <me@cgf.cx> | 2011-02-11 21:00:55 +0300 |
---|---|---|
committer | Christopher Faylor <me@cgf.cx> | 2011-02-11 21:00:55 +0300 |
commit | 98525461c875ab0808b7bfa4787d13ee2d413c40 (patch) | |
tree | d6d3252fd60f35119ee3cfd5e31b6b8698fd8f89 /winsup/cygwin/mkstatic | |
parent | 0ff9e2473f90cb63ba8b196c7447e57686b967d2 (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-x | winsup/cygwin/mkstatic | 6 |
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 } |