diff options
author | Rob Landley <rob@landley.net> | 2016-11-19 11:16:50 -0600 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2016-11-19 11:16:50 -0600 |
commit | 9b4a67545e11975068d6e16c6872d54e0473e715 (patch) | |
tree | c80b34dd3eb5d1f11c9f546f0161ac53feabd7fe | |
parent | 46ae1aaea845d4ea3e1cd2b3e005fdb6a6428053 (diff) | |
download | toybox-9b4a67545e11975068d6e16c6872d54e0473e715.tar.gz |
Bug report from Justin Cormack, tar was producing a warning to stdout that
screwed up "tar c" to stdout.
-rw-r--r-- | toys/pending/tar.c | 2 |
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; } |