]> git.ipfire.org Git - thirdparty/systemd.git/commit
sleep-config: fix useless check for swapfile type
authorDave Reisner <dreisner@archlinux.org>
Tue, 24 Dec 2013 21:42:06 +0000 (16:42 -0500)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 24 Dec 2013 21:43:33 +0000 (16:43 -0500)
commitdb69869f264af2d1afcdd3e573e0e9fdd5bef065
tree643d3e9e9afaac54c1a618747a6df547ed912489
parentc4708f132381e4bbc864d5241381b5cde4f54878
sleep-config: fix useless check for swapfile type

Since 0c6f1f4ea49 the check was useless, because the kernel will
ever only write "partition" or "file" there.

OTOH, it is possible that "\\040(deleted)" (escaped " (deleted)")
will be added for removed files. This should not happen, so add
a warning to detect those cases.
src/shared/sleep-config.c