Don't warn on read-only /var/log filesystem.

This commit is contained in:
Jonas 'Sortie' Termansen 2022-10-31 23:34:32 +01:00
parent 07dd21146b
commit aefec2f7cd
1 changed files with 2 additions and 1 deletions

View File

@ -440,7 +440,8 @@ static bool log_open(struct log* log)
log->fd = open(log->path, logflags, log->file_mode);
if ( log->fd < 0 )
{
log_error(log, "", NULL);
if ( errno != EROFS )
log_error(log, "", NULL);
// Don't block daemon startup on read-only filesystems.
return errno == EROFS;
}