diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-11-28 20:13:23 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-11-28 20:13:23 +0000 |
| commit | df0cc8b04d248771a574e6435061d6be588453d7 (patch) | |
| tree | dc6c38c835616404972372d3af27d81823ff55cf /usr.bin | |
| parent | 13be3254b9a582efa360021e0057a946135279ee (diff) | |
Notes
Diffstat (limited to 'usr.bin')
| -rw-r--r-- | usr.bin/tar/write.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c index 6d7e8bb1ad5d..165097481a0c 100644 --- a/usr.bin/tar/write.c +++ b/usr.bin/tar/write.c @@ -659,8 +659,10 @@ write_hierarchy(struct bsdtar *bsdtar, struct archive *a, const char *path) const struct stat *st = NULL, *lst = NULL; int descend; - if (tree_ret == TREE_ERROR_DIR) + if (tree_ret == TREE_ERROR_DIR) { bsdtar_warnc(bsdtar, errno, "%s: Couldn't visit directory", name); + bsdtar->return_value = 1; + } if (tree_ret != TREE_REGULAR) continue; lst = tree_current_lstat(tree); |
