makedevs: Make count actually behave as a count for device blocks

Previously count actually behaved as end, and did not take start into
account.

(From OE-Core rev: 4fe2b01bfd2831b002e7138dadbc0437df6e9ed6)

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Peter Kjellerstedt
2013-05-31 13:36:49 +02:00
committed by Richard Purdie
parent c81ecf96ed
commit 59bb8e17c7
2 changed files with 2 additions and 2 deletions

View File

@@ -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