chiark / gitweb /
cgls: add pager support to systemd-cgls
[elogind.git] / src / umount.c
index 3d328e0da955ecf855564b1067e5310d6afe9f1a..95efa8204b2e9e9cb11e2cf07666d1556251354d 100644 (file)
@@ -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");