Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
backuptar: SecurityDescriptorFromTarHeader() don't decode twice (#233)
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>
- Loading branch information