mirror of
https://github.com/systemd/systemd.git
synced 2024-10-27 01:55:22 +03:00
sysctl: reset 'r' only where needed
This commit is contained in:
parent
8a65188437
commit
2de30233f7
@ -279,11 +279,11 @@ static int run(int argc, char *argv[]) {
|
||||
if (!sysctl_options)
|
||||
return log_oom();
|
||||
|
||||
r = 0;
|
||||
|
||||
if (argc > optind) {
|
||||
int i;
|
||||
|
||||
r = 0;
|
||||
|
||||
for (i = optind; i < argc; i++) {
|
||||
k = parse_file(sysctl_options, argv[i], false);
|
||||
if (k < 0 && r == 0)
|
||||
|
Loading…
Reference in New Issue
Block a user