From 2728f7e55cbba73a40577229d2f055f76ecf64f7 Mon Sep 17 00:00:00 2001 From: Chris Johns Date: Wed, 18 Aug 2010 09:58:15 +0000 Subject: 2010-08-18 Chris Johns PR 1677/filesystem * libfs/src/imfs/imfs_creat.c: Fix creating of a file. Lost in the change from a switch statement. --- cpukit/ChangeLog | 6 ++++++ cpukit/libfs/src/imfs/imfs_creat.c | 3 +-- 2 files changed, 7 insertions(+), 2 deletions(-) (limited to 'cpukit') diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 2339427052..a3382ca6aa 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,9 @@ +2010-08-18 Chris Johns + + PR 1677/filesystem + * libfs/src/imfs/imfs_creat.c: Fix creating of a file. Lost in the + change from a switch statement. + 2010-08-16 Ralf Corsépius * posix/include/rtems/posix/aio_misc.h: Remove diff --git a/cpukit/libfs/src/imfs/imfs_creat.c b/cpukit/libfs/src/imfs/imfs_creat.c index e8e3ef10a0..3b602d0c14 100644 --- a/cpukit/libfs/src/imfs/imfs_creat.c +++ b/cpukit/libfs/src/imfs/imfs_creat.c @@ -76,12 +76,11 @@ IMFS_jnode_t *IMFS_create_node( } else if ( type == IMFS_LINEAR_FILE ) { node->info.linearfile.size = 0; node->info.linearfile.direct = 0; - if ( type == IMFS_MEMORY_FILE ) { + } else if ( type == IMFS_MEMORY_FILE ) { node->info.file.size = 0; node->info.file.indirect = 0; node->info.file.doubly_indirect = 0; node->info.file.triply_indirect = 0; - } } else if ( type == IMFS_FIFO ) { node->info.fifo.pipe = NULL; } else { -- cgit v1.2.3