aboutsummaryrefslogtreecommitdiff
path: root/toys/pending
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-11-19 11:16:50 -0600
committerRob Landley <rob@landley.net>2016-11-19 11:16:50 -0600
commit9b4a67545e11975068d6e16c6872d54e0473e715 (patch)
treec80b34dd3eb5d1f11c9f546f0161ac53feabd7fe /toys/pending
parent46ae1aaea845d4ea3e1cd2b3e005fdb6a6428053 (diff)
downloadtoybox-9b4a67545e11975068d6e16c6872d54e0473e715.tar.gz
Bug report from Justin Cormack, tar was producing a warning to stdout that
screwed up "tar c" to stdout.
Diffstat (limited to 'toys/pending')
-rw-r--r--toys/pending/tar.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/pending/tar.c b/toys/pending/tar.c
index 384199ea..8d4c3d60 100644
--- a/toys/pending/tar.c
+++ b/toys/pending/tar.c
@@ -184,7 +184,7 @@ static void add_file(struct archive_handler *tar, char **nam, struct stat *st)
if (!*hname) return;
while ((c = strstr(hname, "../"))) hname = c + 3;
if (warn && hname != name) {
- printf("removing leading '%.*s' "
+ fprintf(stderr, "removing leading '%.*s' "
"from member names\n", (int)(hname-name), name);
warn = 0;
}