]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/core/swap.c
core/swap: load() should fail when neither of corresponding unit file nor /proc/swap... 7387/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sun, 19 Nov 2017 16:00:34 +0000 (01:00 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 20 Nov 2017 00:35:35 +0000 (09:35 +0900)
commit3000f85014e891675c996c1024ee9dce48189757
treeb74270427b05238815096345b8eb7aea8e3ee134
parent4a78b637808c5ba436dbbcaef54724be827298fd
core/swap: load() should fail when neither of corresponding unit file nor /proc/swap entry does not exist

It is not necessary to label as loaded to a swap unit when neither of
corresponding unit file nor entry in /proc/swap does not exist.
This makes swap_load() to fail such a case.

Partially fixes #7370.
src/core/swap.c