From b6336c95b4c1d512d4cb139e7b97ec4d1ef843fc Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Fri, 26 Feb 2010 19:37:43 +0000 Subject: [PATCH] * mkimport: cd away from temp directory or Windows will have problems removing the directory. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/mkimport | 1 + 2 files changed, 6 insertions(+) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index af83c3f95..72f8fa658 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2010-02-26 Christopher Faylor + + * mkimport: cd away from temp directory or Windows will have problems + removing the directory. + 2010-02-26 Corinna Vinschen * libc/strptime.cc: Implement support for era, alt_digits and POSIX diff --git a/winsup/cygwin/mkimport b/winsup/cygwin/mkimport index abca72964..70c81048f 100755 --- a/winsup/cygwin/mkimport +++ b/winsup/cygwin/mkimport @@ -80,4 +80,5 @@ for my $f (keys %text) { unlink $libdll; system $ar, 'crus', $libdll, glob('*.o'), @ARGV; unlink glob('*.o'); +chdir '/tmp'; # Allow $dir directory removal on Windows exit 1 if $?;