source: branches/backfire/package/hotplug2/patches/120-sysfs_path_fix.patch @ 21112

Last change on this file since 21112 was 21112, checked in by jow, 6 years ago

[backfire] merge r20679-r20685

File size: 591 bytes
  • rules/command.c

    a b RULES_COMMAND_F(cmd_firmware) { 
    374374        if (firmware == NULL) 
    375375                return -1; 
    376376 
    377         if (snprintf(sysfs_path_loading, PATH_MAX, "/sysfs%s/loading", devpath) >= PATH_MAX) 
     377        if (snprintf(sysfs_path_loading, PATH_MAX, "/sys%s/loading", devpath) >= PATH_MAX) 
    378378                return -1; 
    379         if (snprintf(sysfs_path_data, PATH_MAX, "/sysfs%s/data", devpath) >= PATH_MAX) 
     379        if (snprintf(sysfs_path_data, PATH_MAX, "/sys%s/data", devpath) >= PATH_MAX) 
    380380                return -1; 
    381381        if (snprintf(firmware_path, PATH_MAX, "%s/%s", argv[0], firmware) >= PATH_MAX) 
    382382                return -1; 
Note: See TracBrowser for help on using the repository browser.