summaryrefslogtreecommitdiffstats
path: root/usr.bin/tar
diff options
context:
space:
mode:
authorcperciva <cperciva@FreeBSD.org>2007-03-14 07:30:51 +0000
committercperciva <cperciva@FreeBSD.org>2007-03-14 07:30:51 +0000
commit83a1ac8fb2abaf2901615a62d0be7e064239963d (patch)
treee254b18ff907eb9dcf6faf3c467d2816c1d9a27a /usr.bin/tar
parenta9474579c0bbbfbacba369ee9926fe7e09f07360 (diff)
downloadFreeBSD-src-83a1ac8fb2abaf2901615a62d0be7e064239963d.zip
FreeBSD-src-83a1ac8fb2abaf2901615a62d0be7e064239963d.tar.gz
Reduce the risk of inducing heart attacks, by printing the right path when
complaining about lstat(2) failing. It's a bit scary to find the message tar: /: Cannot stat: No such file or directory printed while doing a backup. MFC after: 1 week
Diffstat (limited to 'usr.bin/tar')
-rw-r--r--usr.bin/tar/write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/tar/write.c b/usr.bin/tar/write.c
index d83dcc1..388a05c 100644
--- a/usr.bin/tar/write.c
+++ b/usr.bin/tar/write.c
@@ -613,7 +613,7 @@ write_hierarchy(struct bsdtar *bsdtar, struct archive *a, const char *path)
lst = tree_current_lstat(tree);
if (lst == NULL) {
/* Couldn't lstat(); must not exist. */
- bsdtar_warnc(bsdtar, errno, "%s: Cannot stat", path);
+ bsdtar_warnc(bsdtar, errno, "%s: Cannot stat", name);
bsdtar->return_value = 1;
continue;
}
OpenPOWER on IntegriCloud