From 4fe2b01bfd2831b002e7138dadbc0437df6e9ed6 Mon Sep 17 00:00:00 2001 From: Peter Kjellerstedt Date: Fri, 31 May 2013 13:36:49 +0200 Subject: makedevs: Make count actually behave as a count for device blocks Previously count actually behaved as end, and did not take start into account. Signed-off-by: Peter Kjellerstedt Signed-off-by: Richard Purdie --- meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'meta/recipes-devtools/makedevs') diff --git a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c index 4bb316b332..6c1f2fb461 100644 --- a/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c +++ b/meta/recipes-devtools/makedevs/makedevs-1.0.0/makedevs.c @@ -219,7 +219,7 @@ static int interpret_table_entry(char *line) dev_t rdev; char buf[80]; - for (i = start; i < count; i++) { + for (i = start; i < start + count; i++) { sprintf(buf, "%s%d", name, i); sprintf(path, "%s/%s%d", rootdir, name, i); /* FIXME: MKDEV uses illicit insider knowledge of kernel -- cgit 1.2.3-korg