From 5ac6edefaf90729f8da0b872f89b146242d0946e Mon Sep 17 00:00:00 2001
From: Christopher Faylor <me@cgf.cx>
Date: Thu, 2 Jun 2005 01:50:23 +0000
Subject: [PATCH] * fhandler_disk_file.cc (fhandler_disk_file::fchown): Make
 sure that disk open is called in case we're passed in a non-existent device.

---
 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 0805ad086..9b906aca5 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2005-06-01  Christopher Faylor  <cgf@timesys.com>
+
+	* fhandler_disk_file.cc (fhandler_disk_file::fchown): Make sure that
+	disk open is called in case we're passed in a non-existent device.
+
 2005-06-01  Christopher Faylor  <cgf@timesys.com>
 
 	* include/machine/stdlib.h: New file.
diff --git a/winsup/cygwin/fhandler_disk_file.cc b/winsup/cygwin/fhandler_disk_file.cc
index e1ec5b377..8edf942e0 100644
--- a/winsup/cygwin/fhandler_disk_file.cc
+++ b/winsup/cygwin/fhandler_disk_file.cc
@@ -528,7 +528,7 @@ fhandler_disk_file::fchown (__uid32_t uid, __gid32_t gid)
   if (!get_io_handle ())
     {
       query_open (query_write_control);
-      if (!(oret = open (O_BINARY, 0)))
+      if (!(oret = fhandler_disk_file::open (O_BINARY, 0)))
 	return -1;
     }