source: lliurex-rpi-packages/trunk/fuentes/ldm/ldm-plugin.patch @ 2328

Last change on this file since 2328 was 2328, checked in by kbut, 3 years ago

add new package

File size: 749 bytes
  • src/ldmplugin.c

    diff -ur ldm-2.2.9/src/ldmplugin.c ldm-2.2.9.new/src/ldmplugin.c
    old new  
    151151    }
    152152    struct dirent* entry;
    153153    while (entry = readdir(plugin_dir)) {
    154         if (entry->d_type == DT_REG && (strstr(entry->d_name, ".so") != NULL)) {
     154        if ((entry->d_type == DT_REG || entry->d_type == DT_UNKNOWN) && (strstr(entry->d_name, ".so") != NULL)) {
    155155            int name_len = strlen(entry->d_name)+strlen(LDM_PLUG_DIR)+2;
    156156            char* plug_name = (char *) malloc(name_len);
    157157            snprintf(plug_name, name_len, "%s/%s", LDM_PLUG_DIR, entry->d_name);
Note: See TracBrowser for help on using the repository browser.