Date: Fri, 1 Mar 2002 15:33:39 +0100 (CET) From: Nicolas Rachinsky <list@rachinsky.de> To: FreeBSD-gnats-submit@freebsd.org Subject: bin/35454: mtree can't handle symlinks referencing files which names contain spaces Message-ID: <200203011433.g21EXdB10566@pc5.abc>
next in thread | raw e-mail | index | archive | help
>Number: 35454
>Category: bin
>Synopsis: mtree can't handle symlinks referencing files which names contain spaces
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Fri Mar 01 06:40:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Nicolas Rachinsky
>Release: FreeBSD 4.5-RELEASE i386
>Organization:
>Environment:
System: FreeBSD pc5.abc 4.5-RELEASE FreeBSD 4.5-RELEASE #2: Wed Feb 27 12:29:06 CET 2002 nicolas@pc5.abc:/usr/src/sys/compile/NR i386
>Description:
mtree cannot handle symlinks pointing to files with spaces in their names
>How-To-Repeat:
Script started on Wed Feb 20 00:22:11 2002
nicolas@pc5 ~/tmp> touch a\ a
nicolas@pc5 ~/tmp> ln -s a\ a t
nicolas@pc5 ~/tmp> mtree -c >list
nicolas@pc5 ~/tmp> mtree <list
mtree: line 11: unknown keyword a
nicolas@pc5 ~/tmp> cat list
# user: nicolas
# machine: pc5.abc
# tree: /data/home/nicolas/tmp
# date: Wed Feb 20 00:22:37 2002
# .
/set type=file uid=1003 gid=1001 mode=0644 nlink=1 flags=none
. type=dir mode=0755 nlink=2 size=512 time=1014160957.0
a\040a size=0 time=1014160937.0
list size=0 time=1014160957.0
t type=link mode=0755 size=3 time=1014160945.0 link=a a
typescript size=43 time=1014160947.0
..
nicolas@pc5 ~/tmp> ^D
Script done on Wed Feb 20 00:22:50 2002
>Fix:
escape the whitespace in the link= part (AFAIK that's not possible in the
moment)
>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?200203011433.g21EXdB10566>
