From: <sa...@us...> - 2008-06-23 22:00:04
|
Revision: 597 http://cadcdev.svn.sourceforge.net/cadcdev/?rev=597&view=rev Author: sannyx Date: 2008-06-23 14:59:58 -0700 (Mon, 23 Jun 2008) Log Message: ----------- don't allow opening a file with O_DIR Modified Paths: -------------- kos/doc/CHANGELOG kos/kernel/arch/dreamcast/sound/arm/stream.drv kos/kernel/fs/fs_ramdisk.c Modified: kos/doc/CHANGELOG =================================================================== --- kos/doc/CHANGELOG 2008-06-20 02:40:29 UTC (rev 596) +++ kos/doc/CHANGELOG 2008-06-23 21:59:58 UTC (rev 597) @@ -155,6 +155,7 @@ a write lock [LS] - *** Added a recursive lock synchronization primitive [LS] - *** Moved checking for free(NULL) up in code to avoid potential problems [HL] +- DC fs_ramdisk.c: Don't allow opening a file with O_DIR [CG] KallistiOS version 1.2.0 ----------------------------------------------- - DC Fix to use DCARM7_CFLAGS when compiling ARM driver [Christian Groessler == CG] Modified: kos/kernel/arch/dreamcast/sound/arm/stream.drv =================================================================== (Binary files differ) Modified: kos/kernel/fs/fs_ramdisk.c =================================================================== --- kos/kernel/fs/fs_ramdisk.c 2008-06-20 02:40:29 UTC (rev 596) +++ kos/kernel/fs/fs_ramdisk.c 2008-06-23 21:59:58 UTC (rev 597) @@ -138,7 +138,7 @@ in the dir. */ if (fn[0] != 0) { f = ramdisk_find(parent, fn, strlen(fn)); - if (!dir && f->type == STAT_TYPE_DIR) + if ((!dir && f->type == STAT_TYPE_DIR) || (dir && f->type != STAT_TYPE_DIR)) return NULL; } else { /* We must have been looking for the dir itself */ This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |