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

change find command to ignore /var/log/lastlog #3103

Merged
merged 1 commit into from Jan 24, 2022

Conversation

y-me-y
Copy link
Contributor

@y-me-y y-me-y commented Jan 20, 2022

The find tends to detect the lastlog because it's been recently modified. the lastlog 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. the lastlog 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

Signed-off-by: Jeff Stasko <jeff.stasko@progress.com>
@y-me-y y-me-y requested review from a team as code owners January 20, 2022 22:20
@netlify
Copy link

netlify bot commented Jan 20, 2022

👷 Deploy Preview for chef-server processing.

🔨 Explore the source changes: ce34ed2

🔍 Inspect the deploy log: https://app.netlify.com/sites/chef-server/deploys/61e9e0357162330007863c0b

@PrajaktaPurohit
Copy link
Contributor

Thank you very much for the detailed description and the change PR! Much appreciated!

@tas50 tas50 merged commit 05e1129 into chef:main Jan 24, 2022
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.

None yet

3 participants