chiark / gitweb /
journal: crash when filesystem is low on space
authorSjoerd Simons <sjoerd@luon.net>
Sat, 14 Apr 2012 12:11:08 +0000 (14:11 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 22 May 2012 11:22:00 +0000 (13:22 +0200)
commit499fb2152f8518796607dd0406698cb6ce4c7098
tree137730e92132cabc05d88532ae4d39b3e803de2e
parentbf4df7c3b6cb24918d94835cafd9dd60881c8981
journal: crash when filesystem is low on space

When space is getting too low on a file system rotating the journal file
will fail after the rotation, as opening the new logfile will fail.

Recognize this when logging the error and don't try to dereference a
NULL JournalFile pointer.
src/journal/journald.c