From d1b941af91f61a4c19f78259b7e251632b54a87a Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Wed, 23 Feb 2005 02:00:48 +0000 Subject: [PATCH] * fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when closing cygdrive_root. --- winsup/cygwin/ChangeLog | 5 +++++ winsup/cygwin/fhandler_disk_file.cc | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 9aec7efa0..7b6ba2dcf 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,8 @@ +2005-02-22 Christopher Faylor + + * fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when + closing cygdrive_root. + 2005-02-22 Corinna Vinschen * cygwin.din (basename): Export. diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc index dab34a453..6171f0b69 100644 --- a/winsup/cygwin/fhandler_disk_file.cc +++ b/winsup/cygwin/fhandler_disk_file.cc @@ -1355,5 +1355,5 @@ fhandler_cygdrive::closedir (DIR *dir) if (!iscygdrive_root ()) return fhandler_disk_file::closedir (dir); pdrive = get_win32_name (); - return -1; + return 0; }