]> err.no Git - systemd/commit
journal: crash when filesystem is low on space
authorSjoerd Simons <sjoerd@luon.net>
Sat, 14 Apr 2012 12:11:08 +0000 (14:11 +0200)
committerTollef Fog Heen <tfheen@err.no>
Sun, 1 Jul 2012 06:30:20 +0000 (08:30 +0200)
commit8c555a421195b2c58e5f1c716b7cb2c0e4e79a1e
tree9eaf807cbe81389c648bdf8ad7177721a2fe43f9
parent5a465c085acbafd353ceea694831e597c5fbba51
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