* fhandler.cc (fhandler_disk_file::open): Add missing case clash check.

This commit is contained in:
Corinna Vinschen 2001-10-09 16:54:18 +00:00
parent d7f6398556
commit e898b6c0c7
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,7 @@
Tue Oct 9 18:53:00 2001 Corinna Vinschen <corinna@vinschen.de>
* fhandler.cc (fhandler_disk_file::open): Add missing case clash check.
Mon Oct 8 01:47:27 2001 Christopher Faylor <cgf@cygnus.com> Mon Oct 8 01:47:27 2001 Christopher Faylor <cgf@cygnus.com>
* dtable.cc (dtable::build_fhandler): Allocate correct amount for given * dtable.cc (dtable::build_fhandler): Allocate correct amount for given

View File

@ -1378,6 +1378,13 @@ fhandler_disk_file::fhandler_disk_file (const char *name) :
int int
fhandler_disk_file::open (path_conv *real_path, int flags, mode_t mode) fhandler_disk_file::open (path_conv *real_path, int flags, mode_t mode)
{ {
if (real_path->case_clash && flags & O_CREAT)
{
debug_printf ("Caseclash detected.");
set_errno (ECASECLASH);
return 0;
}
if (real_path->isbinary ()) if (real_path->isbinary ())
{ {
set_r_binary (1); set_r_binary (1);