On Fri, Aug 26, 2005 at 08:04:45PM +0200, Emanuel Strobl wrote: > > Then I remember Tim Kienzles great work for bsdtar and all the ACL stuff, > but unfortunately a cvPPzf <> xvpPfz also looses the arch flag :( Would you mind sending a PR on this issue with kientzle_at_freebsd.org in Cc:? I believe Tim will be interested in it. I've just confirmed myself using not-too-old CURRENT that bsdtar won't restore file flags stored in its own archive: vpc7# tar --version bsdtar 1.02.023, libarchive 1.02.026 Copyright (C) 2003-2005 Tim Kientzle vpc7# sysctl kern.securelevel kern.securelevel: -1 vpc7# mkdir dir vpc7# touch dir/file vpc7# chflags arch,sunlink dir/file vpc7# ls -lo dir/file -rw-r--r-- 1 root staff arch,sunlnk 0 Aug 29 14:35 dir/file vpc7# tar cf dir.tar dir vpc7# hd dir.tar | grep -1 fflags 00000420 35 33 32 36 31 34 39 0a 32 39 20 53 43 48 49 4c |5326149.29 SCHIL| 00000430 59 2e 66 66 6c 61 67 73 3d 61 72 63 68 2c 73 75 |Y.fflags=arch,su| 00000440 6e 6c 6e 6b 0a 31 37 20 53 43 48 49 4c 59 2e 64 |nlnk.17 SCHILY.d| vpc7# mv dir dir.bak vpc7# tar xpf dir.tar vpc7# ls -lo dir/file -rw-r--r-- 1 root staff - 0 Aug 29 14:35 dir/file This is at variance with what the tar(1) manpage says: -p (x mode only) Preserve file permissions. Attempt to restore the full permissions, including owner, file modes, file flags and ACLs, if available, for each item extracted from the archive... I think it might be reasonable to include these details in the PR. -- YarReceived on Mon Aug 29 2005 - 08:37:57 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:42 UTC