summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/umount.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/umount.c b/src/umount.c
index 3d328e0da9..95efa8204b 100644
--- a/src/umount.c
+++ b/src/umount.c
@@ -146,7 +146,7 @@ static int swap_list_get(MountPoint **head) {
assert(head);
if (!(proc_swaps = fopen("/proc/swaps", "re")))
- return -errno;
+ return (errno == ENOENT) ? 0 : -errno;
(void) fscanf(proc_swaps, "%*s %*s %*s %*s %*s\n");