[package] hotplug2: Cancel firmware loading on file openning errors
[openwrt.git] / package / hotplug2 / patches / 130-cancel_download_fix.patch
1 diff -x '*~' -Naur hotplug2-201/rules/command.c hotplug2-201.patched/rules/command.c
2 --- hotplug2-201/rules/command.c 2010-03-31 17:14:44.000000000 +0300
3 +++ hotplug2-201.patched/rules/command.c 2010-03-31 17:14:51.000000000 +0300
4 @@ -385,13 +385,13 @@
5
6 infp = fopen(firmware_path, "r");
7 if (infp == NULL) {
8 - echo_to_file(sysfs_path_loading, "0\n", 2);
9 + echo_to_file(sysfs_path_loading, "-1\n", 2);
10 return -1;
11 }
12 outfp = fopen(sysfs_path_data, "w");
13 if (outfp == NULL) {
14 fclose(infp);
15 - echo_to_file(sysfs_path_loading, "0\n", 2);
16 + echo_to_file(sysfs_path_loading, "-1\n", 2);
17 return -1;
18 }
19
This page took 0.039095 seconds and 5 git commands to generate.