chiark / gitweb /
logind: remove per-user runtime dir again if setup fails
authorChristian Seiler <christian@iwakd.de>
Fri, 23 Jan 2015 14:26:18 +0000 (15:26 +0100)
committerLennart Poettering <lennart@poettering.net>
Tue, 27 Jan 2015 17:55:50 +0000 (18:55 +0100)
commit4d858e7d9f39038713f760d7acc64acf7bba2aa7
tree7fca23504352992759cfe0af8a714bc55b5747fc
parente611755d98ac6b213f39426359c3a94defc6a029
logind: remove per-user runtime dir again if setup fails

If setup of per-user runtime dir fails, clean up afterwards by removing
the directory before returning from the function, so we don't leave the
directory behind.

If this is not done, the second time the user logs in logind would
assume that the directory is already set up, even though it isn't.
src/login/logind-user.c