[C-prog-lang-l] TAR header

Илья Завидный ilya.zavidny at gmail.com
Fri May 21 08:29:58 CEST 2021


Mr.Pechanec,

Thank you for the clarification!
I was confused because in the assignment.txt there was the following line:
mytar -f archive.tar -c file* (line 89) So I thought that our program
should be able to archive files too.

Best regards,
Ilia Zavidni

On Thu, May 20, 2021 at 8:23 PM Jan Pechanec <jp at devnull.cz> wrote:

> On Thu, 20 May 2021, Илья Завидный wrote:
>
> >Hello,
> >
> >In the tar header file there are such entries as uid, gid, magic,
> linkname,
> >devmajor, etc.
> >When creating an archive are we also supposed to write smth to those
> >entries? If so then how would we get those entries (to be honest I am not
> >sure what they are in the first place :D)?
>
> Ilia,
>
> the assignment does not ask you to create the archive, you only list
> and extract files from an existing archive created via GNU tar.
>
> When extracting the files, just create them with fopen() and ignore
> those fields you mentioned above.
>
> Jan
>
> --
> Jan Pechanec <jp (at) devnull (dot) cz>
> http://www.devnull.cz_______________________________________________
> 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
>
-------------- next part --------------
HTML attachment scrubbed and removed


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