http://bugs.winehq.org/show_bug.cgi?id=24018
--- Comment #14 from Alan W. Irwin irwin@beluga.phys.uvic.ca 2013-07-05 10:17:11 CDT --- Created attachment 45110 --> http://bugs.winehq.org/attachment.cgi?id=45110 Compressed script to properly update cygwin1.dll in setup.exe download
After running Cygwin's setup.exe in download mode, run this script to properly update the download directory tree with a snapshot of cygwin1.dll that includes the recent Cygwin fork fix. For example, if you have downloaded the compressed version of cygwin1-20130627.dll from the Cygwin snapshot page and uncompressed it and if cygwin_packages is the name of the download directory you just created in the current directory by running Cygwin's setup.exe in download mode, then
bash ./replace_cygwin1.dll.sh cygwin1-20130627.dll cygwin_packages
properly updates cygwin1.dll wrapped in a tarball inside cygwin_packages with with the fork-fixed cygwin1-20130627.dll and also properly updates setup.ini inside cygwin_packages. The script works both on Linux and for MSYS bash.exe running on Wine.