Date: Tue, 2 Nov 1999 19:49:53 +0100 (CET) From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de> To: FreeBSD-gnats-submit@freebsd.org Subject: gnu/14664: tar checks for volno-file even if it shouldn't Message-ID: <199911021849.TAA28716@internal>
index | next in thread | raw e-mail
>Number: 14664
>Category: gnu
>Synopsis: tar checks for volno-file even if it shouldn't
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Tue Nov 2 11:00:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Andre Albsmeier
>Release: FreeBSD 3.3-STABLE i386
>Organization:
>Environment:
Probably all FreeBSD versions, patch ist for -STABLE
>Description:
When using tar with the -F option but without --volno-file, the following
output appears after the first volume is full:
root@server:/dump>tar -c -F /dump/volchange -L 10 -f try.tar usr
tar: (null) : Bad address
This is because the code to modify the volno-file is called even if
there hasn't been one specified.
>How-To-Repeat:
See above.
>Fix:
The fix does the same thing as being done elsewhere when volno-file is
accessed: Do it only if the user specified --volno-file.
--- gnu/usr.bin/tar/buffer.c.ORI Tue Nov 2 19:37:05 1999
+++ gnu/usr.bin/tar/buffer.c Tue Nov 2 19:41:07 1999
@@ -1434,7 +1434,8 @@
/* We have to prompt from now on. */
if (f_run_script_at_end)
{
- closeout_volume_number ();
+ if (f_volno_file)
+ closeout_volume_number ();
system (info_script);
}
else
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911021849.TAA28716>
