← Commit list

e94a87134

Denis Vlasenko
Denis Vlasenko
2008-05-24
FAILED Duration: 30s

Subject

mdev: fix counting of '%' in pattern

Binary

No binary (build failed)

Architecture & Compiler Flags

Architecture: x86_64-linux-gnu Compiler: gcc (Ubuntu 11.4.0-1ubuntu1~22.04.3) 11.4.0

—

Build Log

(log yok)

Commit Diff GitHub →

util-linux/mdev.c+3 -2
@@ -180,8 +180,9 @@ static void make_device(char *path, int delete)
/* substitute %1..9 with off[1..9], if any */
n = 0;
s = val;
- while (*s && *s++ == '%')
- n++;
+ while (*s)
+ if (*s++ == '%')
+ n++;
p = alias = xzalloc(strlen(val) + n * strlen(device_name));
s = val + 1;