* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call close_fs

instead of close to avoid calling close from wrong class when changing
	a file system based device node.
	(fhandler_disk_file::fchown): Ditto.
	(fhandler_disk_file::facl): Ditto.
This commit is contained in:
Corinna Vinschen 2008-02-29 16:38:51 +00:00
parent fb91cb7a41
commit 86a4b0c733
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,11 @@
2008-02-29 Corinna Vinschen <corinna@vinschen.de>
* fhandler_disk_file.cc (fhandler_disk_file::fchmod): Call close_fs
instead of close to avoid calling close from wrong class when changing
a file system based device node.
(fhandler_disk_file::fchown): Ditto.
(fhandler_disk_file::facl): Ditto.
2008-02-28 Corinna Vinschen <corinna@vinschen.de>
* exceptions.cc (_cygtls::handle_exceptions): When being debugged,

View File

@ -784,7 +784,7 @@ fhandler_disk_file::fchmod (mode_t mode)
res = 0;
if (oret)
close ();
close_fs ();
return res;
}
@ -826,7 +826,7 @@ fhandler_disk_file::fchown (__uid32_t uid, __gid32_t gid)
res = set_file_attribute (get_handle (), pc, uid, gid, attrib);
}
if (oret)
close ();
close_fs ();
return res;
}
@ -941,7 +941,7 @@ cant_access_acl:
}
if (oret)
close ();
close_fs ();
return res;
}