diff options
author | Tito Ragusa <farmatito@tiscali.it> | 2014-04-01 09:51:27 +0200 |
---|---|---|
committer | Denys Vlasenko <vda.linux@googlemail.com> | 2014-04-01 09:51:27 +0200 |
commit | c9a67133d6a947532b560c7f2b9391ec299dd97f (patch) | |
tree | 429766020254f7c5fa4468c86514fd5a8529bf90 | |
parent | a3f326cd6619cadb44cb4bb051b1d4e54bcd3477 (diff) | |
download | busybox-w32-c9a67133d6a947532b560c7f2b9391ec299dd97f.tar.gz busybox-w32-c9a67133d6a947532b560c7f2b9391ec299dd97f.tar.bz2 busybox-w32-c9a67133d6a947532b560c7f2b9391ec299dd97f.zip |
swapon/swapoff: -a returns 0 on ignored errors
Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-rw-r--r-- | util-linux/swaponoff.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/util-linux/swaponoff.c b/util-linux/swaponoff.c index acdb67729..75487267b 100644 --- a/util-linux/swaponoff.c +++ b/util-linux/swaponoff.c | |||
@@ -116,9 +116,8 @@ static int swap_enable_disable(char *device) | |||
116 | } | 116 | } |
117 | } | 117 | } |
118 | 118 | ||
119 | if (err) { | 119 | if (err && !quiet) { |
120 | if (!quiet) | 120 | bb_simple_perror_msg(device); |
121 | bb_simple_perror_msg(device); | ||
122 | return 1; | 121 | return 1; |
123 | } | 122 | } |
124 | return 0; | 123 | return 0; |