This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: bug in syscalls.cc sync()


On Jan  9 13:39, Howard Chu wrote:
> I was just browsing the CVSweb repository looking at the sync()
> implementation and noticed this small typo. It's not worth the trouble
> for me to download the CVS repository just for this:
> 
> /* sync: SUSv3 */
> extern "C" void
> sync ()
> {
>  char vol[CYG_MAX_PATH];
> 
>  if (wincap.has_guid_volumes ()) /* Win2k and newer */
>    {
>      char a_drive[CYG_MAX_PATH] = {0};
>      char b_drive[CYG_MAX_PATH] = {0};
> 
>      if (is_floppy ("A:"))
>        GetVolumeNameForVolumeMountPointA ("A:\\", a_drive, CYG_MAX_PATH);
>      if (is_floppy ("B:"))
>        GetVolumeNameForVolumeMountPointA ("B:\\", a_drive, CYG_MAX_PATH);
> 
> Notice the last line there - "a_drive" should be "b_drive".

Ouch.  Thanks for the report, I applied a fix to CVS.


Corinna

-- 
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Project Co-Leader          cygwin AT cygwin DOT com
Red Hat

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]