diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 27d0caefe..d34ab0e8f 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,7 @@ +2007-01-10 Corinna Vinschen + + * syscalls.cc (sync): Use b_drive for B: drive (Thanks to Howard Chu). + 2007-01-09 Corinna Vinschen * syscalls.cc (getpagesize): Change condition for clarity. diff --git a/winsup/cygwin/syscalls.cc b/winsup/cygwin/syscalls.cc index 72f9e5b0f..775b29e0c 100644 --- a/winsup/cygwin/syscalls.cc +++ b/winsup/cygwin/syscalls.cc @@ -1124,7 +1124,7 @@ sync () if (is_floppy ("A:")) GetVolumeNameForVolumeMountPointA ("A:\\", a_drive, CYG_MAX_PATH); if (is_floppy ("B:")) - GetVolumeNameForVolumeMountPointA ("B:\\", a_drive, CYG_MAX_PATH); + GetVolumeNameForVolumeMountPointA ("B:\\", b_drive, CYG_MAX_PATH); HANDLE sh = FindFirstVolumeA (vol, CYG_MAX_PATH); if (sh != INVALID_HANDLE_VALUE)