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

SSSCTL: fix logs-remove when log directory is empty #5316

Closed
wants to merge 1 commit into from

Conversation

luizluca
Copy link
Contributor

"sssctl logs-remove" calls "truncate --size 0 .log" and ".log"
will expand to literal '.log' when directory is empty. The result
is a new empty '
.log' file.

Add '--no-create' to truncate call.

Signed-off-by: Luiz Angelo Daros de Luca luizluca@gmail.com

"sssctl logs-remove" calls "truncate --size 0 *.log" and "*.log"
will expand to literal '*.log' when directory is empty. The result
is a new empty '*.log' file.

Add '--no-create' to truncate call.

Signed-off-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
@sumit-bose
Copy link
Contributor

Hi,

good catch and thank you for the patch. I'm fine with the change, @pbrezina, do you agree as well?

bye,
Sumit

@pbrezina
Copy link
Member

Ack.

@pbrezina
Copy link
Member

Pushed PR: #5316

  • master
    • cf15e9e - SSSCTL: fix logs-remove when log directory is empty

@pbrezina pbrezina added Pushed and removed Accepted Ready to push Ready to push labels Sep 21, 2020
@pbrezina pbrezina closed this Sep 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants