mirror of https://github.com/mirror/busybox.git
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>1_23_stable
parent
a3f326cd66
commit
c9a67133d6
|
@ -116,9 +116,8 @@ static int swap_enable_disable(char *device)
|
|||
}
|
||||
}
|
||||
|
||||
if (err) {
|
||||
if (!quiet)
|
||||
bb_simple_perror_msg(device);
|
||||
if (err && !quiet) {
|
||||
bb_simple_perror_msg(device);
|
||||
return 1;
|
||||
}
|
||||
return 0;
|
||||
|
|
Loading…
Reference in New Issue