Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

#71 tar fails when trying to set user and group ids

Tar
closed
GnuWin
Binaries (396)
5
2012-07-26
2003-04-09
Paul Moore
No

When extracting a tar file created on Unix, it tries to set
the user and group IDs on extracted files. However,

a) Unix uids and gids are maningless on Windows
b) It's not possible to set ownership of a file to
anything other than your own user ID on Windows.

Tar gives a series of errors of the form

"tar: Inline-0.25: Could not change access and
modification times: Permission denied"

I believe that tar should not attempt to set user and
group ownership.

If necessary, I can upload a file which exhibits this
behaviour. I haven't done so yet, because the smallest
such file I have is 27K in size when compressed, and if
the problem description is clear enough, a sample file
may not add much. If you want a sample, let me know
and I'll upload it.

Discussion

  • GnuWin
    GnuWin
    2003-04-12

    Logged In: YES
    user_id=217802

    I don't have a Unix system available, so if you could upload a
    small file, I wpuld be grateful.

     
  • Paul Moore
    Paul Moore
    2003-04-12

    Logged In: YES
    user_id=113328

    OK, try the attached file. Use the command

    gzip -dc Inline-0.25.tar.gz | tar xvf -

    This will extract a single directory Inline-0.25, but note the
    errors at the end.

     
  • Paul Moore
    Paul Moore
    2003-04-12

     
    Attachments
  • GnuWin
    GnuWin
    2003-04-12

    Logged In: YES
    user_id=217802

    This seems to occur when tar tries to set permissions of
    directories or of read-only files. I'll try to fix it.

     
  • GnuWin
    GnuWin
    2003-10-03

    Logged In: YES
    user_id=217802

    This bug has been fixed. A new release is available through
    http://gnuwin32.sourceforge.net/

     
  • GnuWin
    GnuWin
    2003-10-03

    Logged In: YES
    user_id=217802

    This bug has been fixed. A new release is available through
    http://gnuwin32.sourceforge.net/