[Pkg-mc-devel] Bug#479548: [VFS] tar archives show multiple entries if archive was created with --append/--update
Michelle Konzack
linux4michelle at freenet.de
Fri May 9 21:03:29 UTC 2008
ATTENTION: This message is copied to the MC mailinglist.
OK, NOW I know the reason...
To reproduce it, put the following into the file
----[ '/usr/share/mc/extfs/foo' ]---------------------------------------
#!/bin/bash
if [ "$1" = "list" ] ; then
echo "drwxrwxr-x 1 michelle.konzack private 96 05-09-2008 22:35 foo"
echo "drwxrwxr-x 1 michelle.konzack private 96 05-09-2008 22:35 foo/bar"
echo "-rwxrwxr-x 1 michelle.konzack private 96 05-09-2008 22:35 foo/bar/baz/test"
echo "drwxrwxr-x 1 michelle.konzack private 96 05-09-2008 22:35 foo/bar/michelle"
echo "drwxrwxr-x 1 michelle.konzack private 96 05-09-2008 22:35 foo/bar/pavel"
# echo "drwxrwxr-x 1 michelle.konzack private 96 05-09-2008 22:35 foo/bar/baz"
fi
------------------------------------------------------------------------
then in
----[ '/usr/share/mc/extfs/extfs.ini' ]---------------------------------
# Michelles solutions
foo
------------------------------------------------------------------------
then in
----[ '/usr/share/mc/mc.ext' ]------------------------------------------
shell/foo
Open=%cd %p+foo
------------------------------------------------------------------------
and then do a
touch foo
leave "mc" and restart it. Now select the file and hit <ENTER>...
You can go into "foo" and then "bar" and in the next you will see a
directory "baz" which contain the file "test"
This is something like a TAR file
Now uncomment the last line and restart mc and go into the "foo" file.
You can go into the "foo" directory and then "bar" and in the next you
will see two directories "baz" which contain the file "test"
How this can happen?
If you tar a directory with
tar -create -vv -file foo.tar foo
which has the content
foo"
foo/bar"
foo/bar/baz/test"
foo/bar/pavel"
foo/bar/michelle"
and then later you do an update with
tar -update -vv -file foo.tar foo
and the directory
foo/bar/baz
is now empty, the empty directory will added in the "tar" index and
produce this output
I have submitted already a "tdmc_tar" EXTFS which correct this problem
and add additional features.
If you use the new "tdmc_tar" you can close this bug#.
Thanks, Greetings and nice Day
Michelle Konzack
Systemadministrator
24V Electronic Engineer
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack Apt. 917 ICQ #328449886
+49/177/9351947 50, rue de Soultz MSN LinuxMichi
+33/6/61925193 67100 Strasbourg/France IRC #Debian (irc.icq.com)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.alioth.debian.org/pipermail/pkg-mc-devel/attachments/20080509/e2be7815/attachment.pgp
More information about the Pkg-mc-devel
mailing list