Re: Bug#479548: [VFS] tar archives show multiple entries if archive was created with --append/--update



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)

Attachment: signature.pgp
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]