summaryrefslogtreecommitdiffstats
path: root/mount/swapon.c
diff options
context:
space:
mode:
authorKarel Zak2006-12-07 00:26:19 +0100
committerKarel Zak2006-12-07 00:26:19 +0100
commitd26aa358f42df65da50014ad62b1a78f22c97400 (patch)
treebf961bf31e4f704fc997acde938d292c4abdc588 /mount/swapon.c
parentImported from util-linux-2.12d tarball. (diff)
downloadkernel-qcow2-util-linux-d26aa358f42df65da50014ad62b1a78f22c97400.tar.gz
kernel-qcow2-util-linux-d26aa358f42df65da50014ad62b1a78f22c97400.tar.xz
kernel-qcow2-util-linux-d26aa358f42df65da50014ad62b1a78f22c97400.zip
Imported from util-linux-2.12h tarball.
Diffstat (limited to 'mount/swapon.c')
-rw-r--r--mount/swapon.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mount/swapon.c b/mount/swapon.c
index e3dfffac5..71b251508 100644
--- a/mount/swapon.c
+++ b/mount/swapon.c
@@ -249,7 +249,7 @@ do_swapoff(const char *special, int quiet) {
exit(1); /* any further swapoffs will also fail */
}
- if (!quiet) {
+ if (!quiet || errno == ENOMEM) {
int errsv = errno;
fprintf(stderr, "%s: %s: %s\n", program_name,
special, strerror(errsv));