Changeset b15fb6e in rtems


Ignore:
Timestamp:
Aug 24, 2010, 1:06:24 PM (10 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.11, master
Children:
69f2a07
Parents:
89dbb28
Message:

2010-08-24 Ralf Corsépius <ralf.corsepius@…>

  • libmisc/untar/untar.c: Return if open fails. Use ssize_t for read() return value.
Location:
cpukit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • cpukit/ChangeLog

    r89dbb28 rb15fb6e  
    1 2010-09-24      Ralf Corsépius <ralf.corsepius@rtems.org>
    2 
     12010-08-24      Ralf Corsépius <ralf.corsepius@rtems.org>
     2
     3        * libmisc/untar/untar.c: Return if open fails.
     4        Use ssize_t for read() return value.
    35        * posix/src/aio_cancel.c: Spray pthread_mutex_unlocks.
    46        * posix/src/aio_read.c: aio_nbytes is always >= 0.
     
    68        Fix typo in comment.
    79
    8 2010-09-24      Ralf Corsépius <ralf.corsepius@rtems.org>
     102010-08-24      Ralf Corsépius <ralf.corsepius@rtems.org>
    911
    1012        * libcsupport/include/sys/utsname.h: Remove times().
  • cpukit/libmisc/untar/untar.c

    r89dbb28 rb15fb6e  
    255255   int            fd;
    256256   char           *bufr;
    257    size_t         n;
     257   ssize_t        n;
    258258   char           fname[100];
    259259   char           linkname[100];
     
    266266   unsigned char  linkflag;
    267267
    268 
    269268   retval = UNTAR_SUCCESSFUL;
     269
     270   if ((fd = open(tar_name, O_RDONLY)) < 0) {
     271       return UNTAR_FAIL;
     272   }
     273
    270274   bufr = (char *)malloc(512);
    271    if (bufr == NULL)
    272    {
     275   if (bufr == NULL) {
    273276      return(UNTAR_FAIL);
    274277   }
    275 
    276    fd = open(tar_name, O_RDONLY);
     278   
    277279   while (1)
    278280   {
Note: See TracChangeset for help on using the changeset viewer.