<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
<br>
<div class="moz-cite-prefix">On 03/12/14 07:07, Nick Withers wrote:<br>
</div>
<blockquote cite="mid:1417586859.1243.60.camel@nuc211.anu.edu.au"
type="cite">
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-western">
<pre wrap="">Anyone be interested in committing this?
On Fri, 2014-03-07 at 14:37 +1100, Nick Withers wrote:
</pre>
<blockquote type="cite" style="color: #000000;">
<pre wrap=""><span class="moz-txt-citetags">> </span>Hi all,
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>The attached patch teaches rtems_tarfs_load() about symlinks, as well as
<span class="moz-txt-citetags">> </span>making it fail if it encounters an unsupported tar file entry type
<span class="moz-txt-citetags">> </span>(e.g., hard links) rather than silently ignoring the 512 B block.
<span class="moz-txt-citetags">> </span>
<span class="moz-txt-citetags">> </span>It tries to be consistent with the existing code which doesn't e.g.
<span class="moz-txt-citetags">> </span>check tar string field NUL termination or printf() on error.
</pre>
</blockquote>
<pre wrap=""><div class="moz-txt-sig">--
Nick Withers
Embedded Systems Programmer
Department of Nuclear Physics, Research School of Physics and Engineering
The Australian National University (CRICOS: 00120C)
</div></pre>
</div>
<br>
<fieldset class="mimeAttachmentHeader"><legend
class="mimeAttachmentHeaderName">rtems_tarfs_load_symlinks.patch</legend></fieldset>
<br>
<div class="moz-text-plain" wrap="true" graphical-quote="true"
style="font-family: -moz-fixed; font-size: 12px;"
lang="x-western">
<pre wrap="">>From 165b5fd7e0c2d5042a69d209a360522f80697d71 Mon Sep 17 00:00:00 2001
From: Nick Withers <a moz-do-not-send="true" class="moz-txt-link-rfc2396E" href="mailto:nick.withers@anu.edu.au"><nick.withers@anu.edu.au></a>
Date: Fri, 7 Mar 2014 14:23:30 +1100
Subject: [PATCH] Teach rtems_tarfs_load() about symlinks
rtems_tarfs_load() will now also fail if it encounters unsupported tar file entry types (e.g., hard links)</pre>
</div>
</blockquote>
<br>
I am not sure if this should now fail if it encounters an
unsupported tar file entry. This may crash applications that worked
for a long time.<br>
<br>
<pre class="moz-signature" cols="72">--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : <a class="moz-txt-link-abbreviated" href="mailto:sebastian.huber@embedded-brains.de">sebastian.huber@embedded-brains.de</a>
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
</pre>
</body>
</html>