chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
systemadm: show in window title whether we inspect the session or the system bus
[elogind.git]
/
swap.c
diff --git
a/swap.c
b/swap.c
index 174ce1dc0e1d95bb6579afd107d21f6ab7532fff..bd49e1ea2bd36e5743d9e30ad58605f52b389abc 100644
(file)
--- a/
swap.c
+++ b/
swap.c
@@
-70,6
+70,9
@@
int swap_add_one_mount_link(Swap *s, Mount *m) {
m->meta.load_state != UNIT_LOADED)
return 0;
+ if (is_device_path(s->what))
+ return 0;
+
if (!path_startswith(s->what, m->where))
return 0;