diff options
author | kientzle <kientzle@FreeBSD.org> | 2004-06-27 23:36:39 +0000 |
---|---|---|
committer | kientzle <kientzle@FreeBSD.org> | 2004-06-27 23:36:39 +0000 |
commit | 4e782d8fc0c78221d9583a6bcbe7e24ce29f462f (patch) | |
tree | c82f7eabcc04f780365598726b3ee9c69a457348 /lib/libarchive/archive_write.c | |
parent | 4965bc7e55d29bec91dd841ca550f73f9b19d48a (diff) | |
download | FreeBSD-src-4e782d8fc0c78221d9583a6bcbe7e24ce29f462f.zip FreeBSD-src-4e782d8fc0c78221d9583a6bcbe7e24ce29f462f.tar.gz |
Refuse to extract an entry from an archive on top of the archive being read.
(This is the converse of the "don't add an archive to itself".)
Diffstat (limited to 'lib/libarchive/archive_write.c')
-rw-r--r-- | lib/libarchive/archive_write.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libarchive/archive_write.c b/lib/libarchive/archive_write.c index f910f14..eded384 100644 --- a/lib/libarchive/archive_write.c +++ b/lib/libarchive/archive_write.c @@ -189,7 +189,7 @@ archive_write_header(struct archive *a, struct archive_entry *entry) if (archive_entry_dev(entry) == a->skip_file_dev && archive_entry_ino(entry) == a->skip_file_ino) { - archive_set_error(a, 0, "Can't add archive to itself."); + archive_set_error(a, 0, "Can't add archive to itself"); return (ARCHIVE_WARN); } |