Ignore:
Timestamp:
Jun 8, 2010, 3:15:31 PM (9 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, master
Children:
9da9cf4a
Parents:
13dc9c6
Message:

2010-06-08 Sebastian Huber <sebastian.huber@…>

  • libfs/src/imfs/imfs_creat.c: Reject creation of FIFOs if support is disabled.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libfs/src/imfs/imfs_creat.c

    r13dc9c6 r68cd765  
    4444   */
    4545  if ( parent_loc == NULL )
     46    return NULL;
     47
     48  parent = parent_loc->node_access;
     49  fs_info = parent_loc->mt_entry->fs_info;
     50
     51  /*
     52   *  Reject creation of FIFOs if support is disabled.
     53   */
     54  if ( type == IMFS_FIFO &&
     55       fs_info->fifo_handlers == &rtems_filesystem_null_handlers )
    4656    return NULL;
    4757
     
    97107   *  This node MUST have a parent, so put it in that directory list.
    98108   */
    99   parent       = parent_loc->node_access;
    100   fs_info      = parent_loc->mt_entry->fs_info;
    101109
    102110  node->Parent = parent;
Note: See TracChangeset for help on using the changeset viewer.