]> git.ipfire.org Git - thirdparty/systemd.git/commit
login: use parse_uid() when unmounting user runtime directory
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 9 Jul 2018 05:05:20 +0000 (14:05 +0900)
committerLennart Poettering <lennart@poettering.net>
Mon, 16 Jul 2018 09:12:42 +0000 (11:12 +0200)
commit86d18f3b09ec984ef3732567af992adb2dc77a8a
treef0f6989dbab69654342f91d3ed59977d7c61aa8e
parent99352de644c086ce8afe461abb67dbf05b69ad86
login: use parse_uid() when unmounting user runtime directory

When unmounting user runtime directory, only UID is necessary,
and the corresponding user may not exist anymore.
This makes first try to parse the input by parse_uid(), and only if it
fails, prase the input by get_user_creds().

Fixes #9541.
src/login/user-runtime-dir.c