From 33a17df9fc8191e4e34d4240065339d8705224be Mon Sep 17 00:00:00 2001 From: Sebastian Ott Date: Fri, 16 Mar 2018 16:29:36 +0100 Subject: [PATCH] lscss: fix scanning for defunct devices MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit util_scandir doesn't work with "/" at the end of the format string. Signed-off-by: Sebastian Ott Signed-off-by: Jan Höppner --- zconf/css/lscss.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zconf/css/lscss.c b/zconf/css/lscss.c index 7aba2b9d..c51c6123 100644 --- a/zconf/css/lscss.c +++ b/zconf/css/lscss.c @@ -717,7 +717,7 @@ static void print_subchannels_of_type(enum sch_type type_requested, if (!cmd.opt_devrange && cmd.rng_count > 0) return; path = util_path_sysfs("devices"); - count = util_scandir(&de_vec, alphasort, path, "css.*/"); + count = util_scandir(&de_vec, alphasort, path, "css.*"); free(path); for (i = 0; i < count; i++) { path = util_path_sysfs("devices/%s/defunct", de_vec[i]->d_name);