[C-prog-lang-l] TAR header

Jan Pechanec jp at devnull.cz
Fri May 21 08:40:52 CEST 2021


On Fri, 21 May 2021, Илья Завидный wrote:

>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.

Ah, I see.  Sorry about that, I just fixed that line ("mytar" -> 
"tar").  You are expected to create the archive via GNU tar.

Thanks for letting us know.

Cheers,
Jan

>
>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
>>
>

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


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