File sblim-cmpi-sysfs-enumerate-symlinks.patch of Package sblim-cmpi-sysfs

--- original/sblim-cmpi-sysfs-1.2.0/util/Linux_SysfsDeviceUtil.c	2006-08-03 19:15:15.000000000 +0200
+++ sblim-cmpi-sysfs-1.2.0/util/Linux_SysfsDeviceUtil.c	2009-07-06 12:28:05.000000000 +0200
@@ -91,10 +91,10 @@
 void * Linux_SysfsDeviceUtil_beginEnumeration( void * location )
 {
    FILE * handle;
-   char * findcommand = malloc(strlen((char *)location)+38); 
+   char * findcommand = malloc(strlen((char *)location)+41);
 
    /* Find all the instance names in the target location */
-   sprintf(findcommand, "find %s -maxdepth 1 -mindepth 1 -type d", (char *)location);
+   sprintf(findcommand, "find -L %s -maxdepth 1 -mindepth 1 -type d", (char *)location);
    handle = popen(findcommand,"r");
    free(findcommand); 
    return handle; 
openSUSE Build Service is sponsored by