Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

backuptar: SecurityDescriptorFromTarHeader() don't decode twice #233

Merged
merged 1 commit into from Mar 23, 2022

Commits on Feb 18, 2022

  1. backuptar: SecurityDescriptorFromTarHeader() don't decode twice

    This may be a theoretical situation, but the tar headers may contain
    both the old and new headers, in which case we would be decoding
    both.
    
    This patch rewrites the function to try the new headers first, and
    return early if found, then fall back to trying the old headers.
    
    Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
    thaJeztah committed Feb 18, 2022
    Copy the full SHA
    b8fee7e View commit details
    Browse the repository at this point in the history