Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Marc Unangst
Sun, 13 Sep 1992 22:08
Problem with GNU tar 1.11
Author: Marc Unangst
Date: Sun, 13 Sep 1992 22:08
Date: Sun, 13 Sep 1992 22:08
28 lines
1699 bytes
1699 bytes
There seems to be a bug in GNU tar 1.11's "-v" option. I am running
on an Intel SVR4 (Esix 4.0.3A) machine, compiling with gcc v2.1.
Aside from commenting out a few
extern char *valloc();
declarations (because they conflicted with the ones in <stdlib.h>), I
have not modified the source.
The problem is that tar prints out a blank line where the filename
should be when -v is given during archive creation (i.e., with the
-c flag). Using multiple -v's, which should increase the debugging
level, results in a segmentation fault.
I have traced through the code, and it seems that the problem is that
the global current_file_name is not being set correctly when
print_header is called. print_header attempts to get the current file
name from current_file_name, and so it prints out nothing. tar
segvios when multiple -v's are given because at the higher debugging
levels, tar tries to do strlen(current_file_name), which results in
strlen being passed a null pointer.
Where and how should current_file_name be set?
--
Marc Unangst | Real men don't use Windows. Real men use X.
mju@mudos.ann-arbor.mi.us | Only a real man would use a GUI where the
| shift keys after "Alt" are "Super" and "Hyper."
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads