diff options
| author | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-12-21 15:26:59 +0000 |
|---|---|---|
| committer | Pedro F. Giffuni <pfg@FreeBSD.org> | 2016-12-21 15:26:59 +0000 |
| commit | 8ad81aaea699770fd6828a3f4a396998550ed230 (patch) | |
| tree | 89473b7f687658c63fcd1e11ea6897b85aa1f59f /bin | |
| parent | 33e7ba9cf91e6c8ef61d4f900682753889be777a (diff) | |
Notes
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/pax/buf_subs.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/pax/buf_subs.c b/bin/pax/buf_subs.c index 4922fc80ffa0..40affa5c0f5e 100644 --- a/bin/pax/buf_subs.c +++ b/bin/pax/buf_subs.c @@ -852,10 +852,13 @@ buf_fill(void) /* * errors require resync, EOF goes to next archive + * but in case we have not determined yet the format, + * this means that we have a very short file, so we + * are done again. */ if (cnt < 0) break; - if (ar_next() < 0) { + if (frmt == NULL || ar_next() < 0) { fini = 1; return(0); } |
