This is the mail archive of the
cygwin
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:
> >Sigh.
> >
> >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 foo
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
http://cygwin.com/ml/cygwin/2009-11/msg00106.html
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Project Co-Leader cygwin AT cygwin DOT com
Red Hat
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple