X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;ds=sidebyside;f=src%2Fumount.c;h=95efa8204b2e9e9cb11e2cf07666d1556251354d;hb=1968a360405e302d4d2c2abc03a3314f81375156;hp=3d328e0da955ecf855564b1067e5310d6afe9f1a;hpb=d72238fcb34abc81aca97c5fb15888708ee937d3;p=elogind.git diff --git a/src/umount.c b/src/umount.c index 3d328e0da..95efa8204 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");