change find command to ignore /var/log/lastlog #3103
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
The find tends to detect the
lastlog
because it's been recently modified. thelastlog
can report as very large on disk and when copying to the temp directory, erroneously creates a large tar.gz file.Note
The lastlog file is a database which contains info on the last login of each user. You should not rotate it. It is a sparse file, so its size on the disk is usually much smaller than the one shown by "ls -l" (which can indicate a really big file if you have in passwd users with a high UID). You can display its real size with "ls -s".
Description
The find tends to detect the
lastlog
because it's been recently modified. thelastlog
can report as very large on disk and when copying to the temp directory, erroneously creates a large tar.gz file. this change just ignores the lastlog file.Issues Resolved
N/A but had this bug come up a couple times for existing customers.
Check List