* 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

@ -1378,6 +1378,13 @@ fhandler_disk_file::fhandler_disk_file (const char *name) :
int
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 ())
{
set_r_binary (1);