• Lars Gustäbel's avatar
    Issue #9065: no longer use "root" as the default for the · 331b8002
    Lars Gustäbel yazdı
    uname and gname field.
    
    If tarfile creates a new archive and adds a file with a
    uid/gid that doesn't have a corresponding name on the
    system (e.g. because the user/group account was deleted) it
    uses the empty string in the uname/gname field now instead
    of "root". Using "root" as the default was a bad idea
    because on extraction the uname/gname fields are supposed
    to override the uid/gid fields. So, all archive members
    with nameless uids/gids belonged to the root user after
    extraction.
    331b8002
tarfile.py 89 KB