Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Feb 2002 12:38:18 -0800 (PST)
From:      Kevin Dorne <root@tentacle.net>
To:        freebsd-gnats-submit@FreeBSD.org
Subject:   gnu/34939: tar quits silently creating archive containing a file with a backslash in the name
Message-ID:  <200202142038.g1EKcIJ97541@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         34939
>Category:       gnu
>Synopsis:       tar quits silently creating archive containing a file with a backslash in the name
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Feb 14 12:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kevin Dorne
>Release:        4.5-STABLE
>Organization:
Tentacle.net
>Environment:
FreeBSD chaos.tentacle.net 4.5-STABLE FreeBSD 4.5-STABLE #0: Wed Feb  6 12:12:52 PST 2002   root@chaos.tentacle.net:/usr/local/obj/usr/local/src/sys/CHAOS   i386
>Description:
I first encountered this problem using tar with the -T option.
If you create an archive including a file with a backslash, such as 'foo\' or 'f\oo', tar will silently stop creating the archive at that file, ignoring all following files.
>How-To-Repeat:
Create an archive with a file containing a backslash ('\').
Most apparent when using a file list (-T option):
create a file 'contents':
foo
bar
oof\
rab

% tar -cv -T contents -f archive.tar
foo
bar
>Fix:
Workaround: rename files, removing backslashes
>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200202142038.g1EKcIJ97541>