bug-tar
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-tar] --index-file with --file=- problem


From: Marcin Gryszkalis
Subject: [Bug-tar] --index-file with --file=- problem
Date: Thu, 6 Jul 2006 19:43:05 +0200
User-agent: KMail/1.9.3

Hello
There's obvious bug when tar uses both
--index-file=tar.log
and
--file=-

the archive is created into the tar.log file while
log goes to stderr. 

The related code is (buffer.c):


if (index_file_name)
(...)
stdlis = freopen (index_file_name, "w", stdout);


and then


else if (strcmp (archive_name_array[0], "-") == 0)
(...)
archive = STDOUT_FILENO;
stdlis = stderr;


I don't know how to fix it without breaking something else :)
regards
-- 
Marcin Gryszkalis, PGP 0x9F183FA3 
jabber jid:address@hidden, gg:2532994
http://the.fork.pl




reply via email to

[Prev in Thread] Current Thread [Next in Thread]