Changeset f114f9d in rtems


Ignore:
Timestamp:
08/05/03 15:54:28 (21 years ago)
Author:
Jennifer Averett <Jennifer.Averett@…>
Children:
8ae3c6e8
Parents:
e539064
Message:

2003-08-05 Till Strauman <strauman@…>

PR 442/filesystem

  • src/open.c: file never closed if ftruncate() fails in open()
Location:
cpukit/libcsupport
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/libcsupport/ChangeLog

    re539064 rf114f9d  
     12003-08-05      Till Strauman <strauman@slac.stanford.edu>
     2
     3        PR 442/filesystem
     4        * src/open.c: file never closed if ftruncate() fails in open()
     5
    162003-07-08      Joel Sherrill <joel@OARcorp.com>
    27
  • cpukit/libcsupport/src/open.c

    re539064 rf114f9d  
    174174  if ( (flags & O_TRUNC) == O_TRUNC ) {
    175175    rc = ftruncate( iop - rtems_libio_iops, 0 );
     176    if ( rc ) {
     177      close( iop - rtems_libio_iops );
     178      /* those are released by close(): */
     179      iop = 0;
     180      loc_to_free = NULL;
     181    }
    176182  }
    177183   
Note: See TracChangeset for help on using the changeset viewer.