From 9b4a67545e11975068d6e16c6872d54e0473e715 Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Sat, 19 Nov 2016 11:16:50 -0600 Subject: Bug report from Justin Cormack, tar was producing a warning to stdout that screwed up "tar c" to stdout. --- toys/pending/tar.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'toys/pending') 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; } -- cgit v1.2.3