This is the mail archive of the
mailing list for the Cygwin project.
Re: src/winsup/cygwin ChangeLog syscalls.cc
On Nov 5 11:55, Yaakov S wrote:
> On 05/11/2009 11:34, Corinna Vinschen wrote:
> >Is there any *reliable* solution to this problem, other than never to
> >add a .exe suffix?
> What is "this problem" that you're trying to fix?
rename ("foo", "bar"), when "foo" is a Windows binary. That's what
happens, for instance, when you call
strip create a tempfile with an arbitrary name to write the stripped
binary to, and then renames it back to the incoming filename. So
the current mechanism will find that "tmpXYZ" is a Windows binary file,
the .exe suffix was not given in the source, and no suffix (in the
previous incarnation "no .exe suffix") has been specified for the target,
so it appends .exe to the target filename.
The old implementation results in another problem, see
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple