diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2006-08-15 04:04:00 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2006-08-15 04:04:00 +0000 |
| commit | d414408cbca9f7ae3792d5683a0b0b25f8028f17 (patch) | |
| tree | c0d612a992fa2753a18e95a48554e24d50b75556 /lib | |
| parent | 06da4359529257e4719b563eac10a266b5cbceeb (diff) | |
Notes
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/libarchive/archive_write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libarchive/archive_write.c b/lib/libarchive/archive_write.c index 73283e456c5c..3a999ca34fa2 100644 --- a/lib/libarchive/archive_write.c +++ b/lib/libarchive/archive_write.c @@ -201,7 +201,9 @@ archive_write_header(struct archive *a, struct archive_entry *entry) if (a->state & ARCHIVE_STATE_DATA) ((a->format_finish_entry)(a)); - if (archive_entry_dev(entry) == a->skip_file_dev && + if (a->skip_file_dev != 0 && + archive_entry_dev(entry) == a->skip_file_dev && + a->skip_file_ino != 0 && archive_entry_ino(entry) == a->skip_file_ino) { archive_set_error(a, 0, "Can't add archive to itself"); return (ARCHIVE_WARN); |
