Bug#29191: marked as done (busybox "star" command incompatible with cpio)
Your message dated Mon, 21 Dec 1998 14:52:47 +0000
with message-id <E0zs6hT-0000rHemail@example.com>
and subject line Fixed in boot-floppies_2.1.3
has caused the attached bug report to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what I'm
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
(administrator, Debian bugs database)
Received: (at submit) by bugs.debian.org; 9 Nov 1998 04:22:11 +0000
Received: (qmail 27312 invoked from network); 9 Nov 1998 04:22:09 -0000
Received: from cr5112-a.ktchnr1.on.wave.home.com (HELO insight.worldvisions.ca) (18.104.22.168)
by master.debian.org with SMTP; 9 Nov 1998 04:22:09 -0000
Received: from apenwarr by insight.worldvisions.ca with local (Exim 2.04 #1 (Debian))
id 0zcion-0005at-00; Sun, 8 Nov 1998 23:20:45 -0500
Date: Sun, 8 Nov 1998 23:20:45 -0500
From: Avery Pennarun <firstname.lastname@example.org>
Subject: busybox "star" command incompatible with cpio
Content-Type: text/plain; charset=us-ascii
X-Mailer: Mutt 0.94.15i
The busybox "star" command does not seem to be compatible with tar files
created by GNU cpio 2.4.2-21. Directories that cpio includes in the archive
do _not_ end in a trailing slash character, and busybox assumes that they
will, so we end up with directory names truncated by one character.
I'm not sure whether cpio is violating standard tar format or not. The
following patch should correct the problem for busybox, anyway.
diff -u -r22.214.171.124 tarfn.c
--- busybox/tarfn.c 1998/11/09 03:50:34 126.96.36.199
+++ busybox/tarfn.c 1998/11/09 04:13:47
@@ -136,7 +136,8 @@
/* Else, Fall Through */
- h.Name[nameLength - 1] = '\0';
+ if (h.Name[nameLength - 1] == '/')
+ h.Name[nameLength - 1] = '\0';
status = (*functions->MakeDirectory)(&h);