Skip to content

Keep mode#47

Closed
sdaoden wants to merge 8 commits intotroglobit:masterfrom
sdaoden:keep_mode
Closed

Keep mode#47
sdaoden wants to merge 8 commits intotroglobit:masterfrom
sdaoden:keep_mode

Conversation

@sdaoden
Copy link
Copy Markdown
Contributor

@sdaoden sdaoden commented Feb 11, 2022

Hello.
It happens that syslogd.c looses the file mode when rotating files, it always uses 0644.
(Your logger.c does not, but CRUX-Linux does not use the logger from sysklogd, it .. uses that from the util-linux package.)

So here is a patch on top of the rotate branch that simply passes the fetched stat mode to carry the mode along.

@troglobit
Copy link
Copy Markdown
Owner

LGTM, but will have to wait for the other two PRs it builds on.

@troglobit troglobit added this to the v2.4.0 milestone Mar 5, 2022
@sdaoden
Copy link
Copy Markdown
Contributor Author

sdaoden commented Mar 12, 2022

At your service.

troglobit added a commit that referenced this pull request Mar 14, 2022
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
@troglobit
Copy link
Copy Markdown
Owner

Rebased and merged manually to master.

@troglobit troglobit closed this Mar 14, 2022
@sdaoden sdaoden deleted the keep_mode branch March 14, 2022 18:31
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.

2 participants