chiark / gitweb /
logind: fix write_string_file() fallout
authorDaniel Mack <daniel@zonque.org>
Mon, 20 Jul 2015 21:17:37 +0000 (23:17 +0200)
committerSven Eden <yamakuzure@gmx.net>
Tue, 14 Mar 2017 09:07:02 +0000 (10:07 +0100)
commit6609ed3a939c2feb8a7cd39ce4f45413f2d58315
tree0a0b3dee2f0e12c1a0cff6cf2d21af8b15768194
parent919d0fd3c8394b0988c0b4f81c081a20f25a8e87
logind: fix write_string_file() fallout

WRITE_STRING_FILE_ATOMIC is only valid if WRITE_STRING_FILE_CREATE is also
given. IOW, an atomic file write operation is only possible when creating a
file is also being asked for.

This is a regression from the recent write_string_file() rework.
src/login/logind-dbus.c