[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-tar] what is the point of archiving /proc "files" if you can't
Re: [Bug-tar] what is the point of archiving /proc "files" if you can't extract them later?
Mon, 7 Nov 2016 12:13:20 +0100
Heirloom mailx 12.5 7/5/10
??? Dan Jacobson <address@hidden> wrote:
> Tar can archive these /proc "files" just fine,
> but it can't extract them. It gets fooled by its storing a zero file size.
What you describe does not happen if you are using a real procfs.
This is however a well known implementation bug that exists in the Linux
kernel where /proc only has a remote similarity with procfs.
On Linux, stat() indeed returns st_size == 0 for all files in /proc.
EMail:address@hidden (home) Jörg Schilling D-13353 Berlin
address@hidden (work) Blog: http://schily.blogspot.com/