Skip to content

fix handling when tarinfo is None - #955

Open
dirkhub wants to merge 1 commit into
Checkmk:masterfrom
svalabs:bugfix/backup_tarinfo
Open

fix handling when tarinfo is None#955
dirkhub wants to merge 1 commit into
Checkmk:masterfrom
svalabs:bugfix/backup_tarinfo

Conversation

@dirkhub

@dirkhub dirkhub commented Aug 28, 2026

Copy link
Copy Markdown
Contributor

For unsupported file types like Unix sockets and possibly other types, TarFile.getattrinfo() can return None. This commit reverts the changes from 77898dc to avoid crashes. (change I19d966fe510b994b0e5809cdc394d7e4e87a106d)

The problem happened at a customer so that "omd backup" failed with a traceback and no site backup was possible after a 2.5 update from 2.4. It could be fixed after we compared it to the 2.4 code and reverted the line to "if tarinfo is None or not predicate(tarinfo):", which is more robust in real life environments.

Kind regards, Dirk.

For unsupported file types like Unix sockets and possibly other types, TarFile.getattrinfo() can return None. This commit reverts the changes from 77898dc to handle avoid crashes.
@dirkhub

dirkhub commented Aug 28, 2026

Copy link
Copy Markdown
Contributor Author

@englertor hello, it seems the testing workflow on this new pull-reqeuest once again failed due to timeouts, not real errors in the pull request, Could you please verify the pull reqeust? Kind regards, Dirk (dirkhub / svalabs).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant