Date: Sun, 2 Feb 1997 03:26:14 -0800 (PST) From: zorac@mbox.kyoto-inet.or.jp To: freebsd-gnats-submit@freebsd.org Subject: gnu/2637: tar dumped core with -g option. Message-ID: <199702021126.DAA14267@freefall.freebsd.org> Resent-Message-ID: <199702021130.DAA14347@freefall.freebsd.org>
index | next in thread | raw e-mail
>Number: 2637
>Category: gnu
>Synopsis: tar dumped core with -g option.
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-bugs
>State: open
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Feb 2 03:30:01 PST 1997
>Last-Modified:
>Originator: Hiroya Tsubakimoto
>Organization:
4000Do Co.,LTD.
>Release: 2.1.6.1
>Environment:
FreeBSD s2.c4000do.co.kyoto-inet.or.jp 2.1.6.1-RELEASE FreeBSD 2.1.6.1-RELEASE #3: Sat Dec 7 06:22:
42 JST 1996 zorac@s2.c4000do.co.kyoto-inet.or.jp:/usr/src/sys/compile/HOME i386
>Description:
tar dumped core when it has -g option and add a sub-directory has KANJI name.
>How-To-Repeat:
linke this:
bash$ ls -a . dir
.:
. .. dir
dir:
. .. ???????????????? <-- KANJI name
bash$ ./tar -c -g ./log -f ./x dir
bash$ cat ./log
854881844
1036 25994 dir/\.77\.67\.44\.67\.44\.44\.16\/14\.16\.53\.16\/31\.16\/00\.16\/36
bash$ ./tar -c -g ./log -f ./x dir
Segmentation fault (core dumped)
>Fix:
following patch:
*** port.c Tue May 30 14:04:44 1995
--- port.c.patch Thu Nov 7 19:53:55 1996
***************
*** 889,895 ****
*to_there++ = '?';
else
{
! to_there[0] = (c >> 6) + '0';
to_there[1] = ((c >> 3) & 07) + '0';
to_there[2] = (c & 07) + '0';
to_there += 3;
--- 889,895 ----
*to_there++ = '?';
else
{
! to_there[0] = ((c >> 6) & 03) + '0';
to_there[1] = ((c >> 3) & 07) + '0';
to_there[2] = (c & 07) + '0';
to_there += 3;
>Audit-Trail:
>Unformatted:
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199702021126.DAA14267>
