user-sessions: fix write_string_file() fallout
authorDaniel Mack <daniel@zonque.org>
Mon, 20 Jul 2015 21:17:37 +0000 (23:17 +0200)
committerDaniel Mack <daniel@zonque.org>
Tue, 21 Jul 2015 13:59:02 +0000 (15:59 +0200)
commit81b72a962f0b6ebbe8e7dfcad306d33bf086529a
treeeefab61af167df5cae79c017e4935ff707b06e3c
parent6f566391a428789d0bb54654642d4dc3d6948c68
user-sessions: 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/user-sessions/user-sessions.c