Don't warn on read-only /var/log filesystem.
This commit is contained in:
parent
07dd21146b
commit
aefec2f7cd
|
@ -440,6 +440,7 @@ static bool log_open(struct log* log)
|
||||||
log->fd = open(log->path, logflags, log->file_mode);
|
log->fd = open(log->path, logflags, log->file_mode);
|
||||||
if ( log->fd < 0 )
|
if ( log->fd < 0 )
|
||||||
{
|
{
|
||||||
|
if ( errno != EROFS )
|
||||||
log_error(log, "", NULL);
|
log_error(log, "", NULL);
|
||||||
// Don't block daemon startup on read-only filesystems.
|
// Don't block daemon startup on read-only filesystems.
|
||||||
return errno == EROFS;
|
return errno == EROFS;
|
||||||
|
|
Loading…
Reference in New Issue