projects
/
oweals
/
busybox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3f326c
)
swapon/swapoff: -a returns 0 on ignored errors
author
Tito Ragusa
<farmatito@tiscali.it>
Tue, 1 Apr 2014 07:51:27 +0000
(09:51 +0200)
committer
Denys Vlasenko
<vda.linux@googlemail.com>
Tue, 1 Apr 2014 07:51:27 +0000
(09:51 +0200)
Signed-off-by: Tito Ragusa <farmatito@tiscali.it>
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
util-linux/swaponoff.c
patch
|
blob
|
history
diff --git
a/util-linux/swaponoff.c
b/util-linux/swaponoff.c
index acdb67729fbdf245676cc72cb1e6845d8e90fb66..75487267ba8d2a99266361097b73762699c46a5c 100644
(file)
--- a/
util-linux/swaponoff.c
+++ b/
util-linux/swaponoff.c
@@
-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;