aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2005-02-23 02:00:48 +0000
committerChristopher Faylor <me@cgf.cx>2005-02-23 02:00:48 +0000
commitd1b941af91f61a4c19f78259b7e251632b54a87a (patch)
tree143f80ee51ef63baf229b57eec29b5c584f3abef
parent24e8fc6872a3bceb43575edde8f221d8838186bb (diff)
downloadnewlib-d1b941af91f61a4c19f78259b7e251632b54a87a.zip
newlib-d1b941af91f61a4c19f78259b7e251632b54a87a.tar.gz
newlib-d1b941af91f61a4c19f78259b7e251632b54a87a.tar.bz2
* fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when closing
cygdrive_root.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_disk_file.cc2
2 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 9aec7ef..7b6ba2d 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-02-22 Christopher Faylor <cgf@timesys.com>
+
+ * fhandler_disk_file.cc (fhandler_cygdrive::closedir): Return 0 when
+ closing cygdrive_root.
+
2005-02-22 Corinna Vinschen <corinna@vinschen.de>
* cygwin.din (basename): Export.
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index dab34a4..6171f0b 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;
}