Changeset 6982ed7 in rtems


Ignore:
Timestamp:
Mar 12, 2010, 8:31:31 AM (10 years ago)
Author:
Thomas Doerfler <Thomas.Doerfler@…>
Branches:
4.10, 4.11, master
Children:
3c02c9d
Parents:
33785342
Message:

Do not overwrite errno in case fat_file_write() returns with an error status.

Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r33785342 r6982ed7  
     12010-03-11      Sebastian Huber <sebastian.huber@embedded-brains.de>
     2
     3        * libfs/src/dosfs/msdos_misc.c: Do not overwrite errno in case
     4        fat_file_write() returns with an error status.
     5
    162010-03-11      Ken Peters <kptrs@yahoo.com>
    27
  • cpukit/libfs/src/dosfs/msdos_misc.c

    r33785342 r6982ed7  
    14481448            printf ("MSFS:[9.4] clear write: %d\n", ret);
    14491449#endif
    1450             if (ret != bts2rd)
     1450            if (ret == -1)
     1451              return ret;
     1452            else if (ret != bts2rd)
    14511453              rtems_set_errno_and_return_minus_one(EIO);
    14521454          }
     
    15571559                             (empty_space_offset * bts2rd) + empty_space_entry,
    15581560                             length, fs_info->cl_buf + empty_space_entry);
    1559         if (ret != length)
     1561        if (ret == -1)
     1562            return ret;
     1563        else if (ret != length)
    15601564            rtems_set_errno_and_return_minus_one(EIO);
    15611565
Note: See TracChangeset for help on using the changeset viewer.