diff options
| author | Tim Kientzle <kientzle@FreeBSD.org> | 2008-11-27 05:14:36 +0000 |
|---|---|---|
| committer | Tim Kientzle <kientzle@FreeBSD.org> | 2008-11-27 05:14:36 +0000 |
| commit | e4504a7d063ae17d6d8b4dcd8ddecfd0b2c8dc74 (patch) | |
| tree | 61380daa9f15712e4ef3ce88945608340599263c /usr.bin | |
| parent | 559b717f5e518f518afa16eddf7a3a2a72840fbf (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 20e9316e8d40..894b9bac3335 100644 --- a/usr.bin/tar/write.c +++ b/usr.bin/tar/write.c @@ -655,8 +655,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); |
