----- Original Message ----- From: "Denis Excoffier" <[email protected]> To: <[email protected]> Cc: "Denis Excoffier" <[email protected]> Sent: Monday, October 25, 2010 9:50 PM Subject: [Bug-tar] [GNU tar 1.24] empty dir and option -C
> Hello list, > > If you have an empty dir stored in the tar file and you > extract using -C, you get an error message and the > empty dir is *not* restored. > > I tried on Solaris 8 and 10, Cygwin, Darwin and Linux > Ubuntu, all with the same effect. > > Details below. Thank you for your help. > > jupiter% tar -x -vv --full-time -f 1.tar -C i1 > drwxr-xr-x myuser/mygroup 0 2010-10-25 11:31:01 1/ > drwxr-xr-x myuser/mygroup 0 2010-10-25 11:31:01 1/2/ > drwxr-xr-x Creating directory: 1 > -rw-r--r-- myuser/mygroup 0 2010-10-25 11:31:01 1/3 > tar: 1/2: Cannot utime: No such file or directory > tar: 1/2: Cannot stat: No such file or directory > tar: Exiting with failure status due to previous errors I have something on linux that look similar and is broken using 1.24. That produce 'Cannot mkdir' error tar -c -C / --files-from=/tmp/ROOTFILES --exclude=tmp/foo.tar -f /tmp/foo.tar tar -x -C /tmp -f /tmp/foo.tar tar: usr/share/kbd/keymaps/i386: Cannot mkdir: No such file or directory tar: usr/share/kbd/keymaps/i386/dvorak: Cannot mkdir: No such file or directory tar: usr/share/kbd/keymaps/i386/qwertz: Cannot mkdir: No such file or directory ... tar: Exiting with failure status due to previous errors I have 442 times 'Cannot mkdir' errors [chroot-i486] root:/$ tar -tvf /tmp/foo.tar | grep '^d' | wc -l 445 I try to reduce my case but fail to find something simplier that fail the same. Gilles
