[C-prog-lang-l] File metadata with tar -x option

Jan Pechanec jp at devnull.cz
Tue Jul 14 16:26:24 CEST 2020


On Sat, 11 Jul 2020, Thomas Mol wrote:

>Hello,
>
>The phase 2 assignment mentions the following:
>- Do not worry about ownership and permissions when extracting files,
>just create them with fopen().
>Am I correct in interpreting this as meaning we do not need to set
>metadata for the file upon extraction, such as UID, GID, and
>permissions? Or does it mean we needn't worry about *having* such
>permissions when extracting the file, but we still need to set its
>bits appropriately?

Hello Thomas,

you do not need to set the metadata, meaning you can ignore not having 
them (which technically will not happen as you will test archives 
created by GNU tar).

Jan.

>Regards,
>Thomas Folkert Mol
>_______________________________________________
>c-prog-lang-l mailing list
>c-prog-lang-l at mff.cuni.cz
>http://mbox.ms.mff.cuni.cz/listserv/listinfo/c-prog-lang-l
>

-- 
Jan Pechanec <jp (at) devnull (dot) cz>
http://www.devnull.cz


More information about the c-prog-lang-l mailing list