Files
sblim-cmpi-sysfs/0001-enumerate-symlinks.patch
Klaus Kämpf 1a76c428af - fix %patch syntax, drop %clean section
- rename sblim-cmpi-sysfs-enumerate-symlinks.patch to
    0001-enumerate-symlinks.patch
- add 0002-include-ctype.h.patch

OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:wbem/sblim-cmpi-sysfs?expand=0&rev=14
2025-02-08 10:23:22 +00:00

30 lines
1.1 KiB
Diff

From b20363fbd08e97b9f087fc2e38093a9f5b4d6031 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Klaus=20K=C3=A4mpf?= <kkaempf@gmail.com>
Date: Sat, 8 Feb 2025 11:17:01 +0100
Subject: [PATCH 1/2] enumerate symlinks
---
util/Linux_SysfsDeviceUtil.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/util/Linux_SysfsDeviceUtil.c b/util/Linux_SysfsDeviceUtil.c
index 58ee08a..c0c3bdd 100644
--- a/util/Linux_SysfsDeviceUtil.c
+++ b/util/Linux_SysfsDeviceUtil.c
@@ -91,10 +91,10 @@ CMPIInstance * Linux_SysfsDeviceUtil_makeInstance( char * instancename, const CM
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;
--
2.48.1