* fhandler.cc (fhandler_disk_file::open): Add missing case clash check.
This commit is contained in:
parent
d7f6398556
commit
e898b6c0c7
@ -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>
|
||||
|
||||
* dtable.cc (dtable::build_fhandler): Allocate correct amount for given
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user