title: Tar error: Unexpected EOF in archive
body: <p>I tar a directory full of JPEG images: </p>
  
  <pre><code>tar cvfz myarchive.tar.gz mydirectory
  </code></pre>
  
  <p>When I untar the archive: </p>
  
  <pre><code>tar xvfz myarchive.tar.gz
  </code></pre>
  
  <p>I get an error:</p>
  
  <pre><code>tar: Unexpected EOF in archive
  </code></pre>
  
  <p>Looking at the output, it fails in the middle of one particular JPEG image.</p>
  
  <p>What am I doing wrong?</p>