The following functions in rotate() need to have their return statuses checked for errors so we don't have confusing behavior when things fail silently:
rename()
CreateFileA()
freopen()
dup2()
If these functions fail, we should write to stderr and translate errno.
- is duplicated by
-
SERVER-8160 The rotateLogs() function doesn't print errno when the rename() fails
- Closed
-
SERVER-20480 Logrotate fails with no error message if the log dir ownership/permissions are incorrect
- Closed