<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>change log for rtems (2010-08-24)</title>
</head>
<body text='#000000' bgcolor='#ffffff'>
<a name='cs1'></a>
<table border='0' cellspacing='0' cellpadding='5' width='100%' bgcolor='#eeeeee'>
<tr><td colspan='3' bgcolor='#dddddd'>
 <font color='#bb2222'><strong>ralf</strong></font>
</td></tr>
<tr><td colspan='3' bgcolor='#dddddd'><pre>2010-08-24 Ralf Corsépius <ralf.corsepius@rtems.org>

        * libmisc/untar/untar.c: Return if open fails.
        Use ssize_t for read() return value.
</pre></td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/ChangeLog.diff?r1=text&tr1=1.2589&r2=text&tr2=1.2590&diff_format=h">M</a></td><td width='1%'>1.2590</td><td width='100%'>cpukit/ChangeLog</td></tr>
<tr><td width='1%'><a href="http://www.rtems.com/cgi-bin/viewcvs.cgi//rtems/cpukit/libmisc/untar/untar.c.diff?r1=text&tr1=1.13&r2=text&tr2=1.14&diff_format=h">M</a></td><td width='1%'>1.14</td><td width='100%'>cpukit/libmisc/untar/untar.c</td></tr>
</table>
<pre>
<font color='#006600'>diff -u rtems/cpukit/ChangeLog:1.2589 rtems/cpukit/ChangeLog:1.2590
--- rtems/cpukit/ChangeLog:1.2589       Tue Aug 24 07:04:43 2010
+++ rtems/cpukit/ChangeLog      Tue Aug 24 08:06:23 2010
</font><font color='#997700'>@@ -1,11 +1,13 @@
</font><font color='#880000'>-2010-09-24    Ralf Corsépius <ralf.corsepius@rtems.org>
</font><font color='#000088'>+2010-08-24    Ralf Corsépius <ralf.corsepius@rtems.org>
</font> 
<font color='#000088'>+   * libmisc/untar/untar.c: Return if open fails.
+       Use ssize_t for read() return value.
</font>   * posix/src/aio_cancel.c: Spray pthread_mutex_unlocks.
        * posix/src/aio_read.c: aio_nbytes is always >= 0.
        * posix/src/aio_write.c: aio_nbytes is always >= 0.
        Fix typo in comment.
 
<font color='#880000'>-2010-09-24 Ralf Corsépius <ralf.corsepius@rtems.org>
</font><font color='#000088'>+2010-08-24    Ralf Corsépius <ralf.corsepius@rtems.org>
</font> 
        * libcsupport/include/sys/utsname.h: Remove times().
        Remove unnecessary includes.

<font color='#006600'>diff -u rtems/cpukit/libmisc/untar/untar.c:1.13 rtems/cpukit/libmisc/untar/untar.c:1.14
--- rtems/cpukit/libmisc/untar/untar.c:1.13     Tue Jul 27 13:11:42 2010
+++ rtems/cpukit/libmisc/untar/untar.c  Tue Aug 24 08:06:24 2010
</font><font color='#997700'>@@ -254,7 +254,7 @@
</font> {
    int            fd;
    char           *bufr;
<font color='#880000'>-   size_t         n;
</font><font color='#000088'>+   ssize_t        n;
</font>    char           fname[100];
    char           linkname[100];
    int            sum;
<font color='#997700'>@@ -265,15 +265,17 @@
</font>    unsigned long  size;
    unsigned char  linkflag;
 
<font color='#880000'>-
</font>    retval = UNTAR_SUCCESSFUL;
<font color='#000088'>+
+   if ((fd = open(tar_name, O_RDONLY)) < 0) {
+       return UNTAR_FAIL;
+   }
+
</font>    bufr = (char *)malloc(512);
<font color='#880000'>-   if (bufr == NULL)
-   {
</font><font color='#000088'>+   if (bufr == NULL) {
</font>       return(UNTAR_FAIL);
    }
<font color='#880000'>-
-   fd = open(tar_name, O_RDONLY);
</font><font color='#000088'>+<span style="background-color: #FF0000">   </span>
</font>    while (1)
    {
       /* Read the header */
</pre>
<p> </p>

<p>--<br />
<small>Generated by <a href="http://www.codewiz.org/projects/index.html#loginfo">Deluxe Loginfo</a> 2.122 by Bernardo Innocenti <bernie@develer.com></small></p>
</body>
</html>