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>
This commit is contained in:
Tito Ragusa 2014-04-01 09:51:27 +02:00 committed by Denys Vlasenko
parent a3f326cd66
commit c9a67133d6

View File

@ -116,8 +116,7 @@ static int swap_enable_disable(char *device)
} }
} }
if (err) { if (err && !quiet) {
if (!quiet)
bb_simple_perror_msg(device); bb_simple_perror_msg(device);
return 1; return 1;
} }