[package] busybox: fix empty password detection in telnetd init (#10432)
[openwrt.git] / package / hotplug2 / patches / 130-cancel_download_fix.patch
1 --- a/rules/command.c
2 +++ b/rules/command.c
3 @@ -385,13 +385,13 @@ RULES_COMMAND_F(cmd_firmware) {
4
5 infp = fopen(firmware_path, "r");
6 if (infp == NULL) {
7 - echo_to_file(sysfs_path_loading, "0\n", 2);
8 + echo_to_file(sysfs_path_loading, "-1\n", 2);
9 return -1;
10 }
11 outfp = fopen(sysfs_path_data, "w");
12 if (outfp == NULL) {
13 fclose(infp);
14 - echo_to_file(sysfs_path_loading, "0\n", 2);
15 + echo_to_file(sysfs_path_loading, "-1\n", 2);
16 return -1;
17 }
18
This page took 0.043433 seconds and 5 git commands to generate.