[oe] [PATCH] Fix makedevs interpretation of device table
y at badebec
y at badebec
Sun Sep 13 14:00:56 UTC 2009
From: Antonio Ospite <ospite at studenti.unina.it>
Currently makedevs is interpreting the 'count' field in device table as "count
from minor number 0", fix it so it becomes "count from the 'start' minor
number".
Signed-off-by: Antonio Ospite <ospite at studenti.unina.it>
---
recipes/makedevs/makedevs-1.0.0/makedevs.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/recipes/makedevs/makedevs-1.0.0/makedevs.c b/recipes/makedevs/makedevs-1.0.0/makedevs.c
index c7ad722..80f21f0 100644
--- a/recipes/makedevs/makedevs-1.0.0/makedevs.c
+++ b/recipes/makedevs/makedevs-1.0.0/makedevs.c
@@ -221,7 +221,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);
/* FIXME: MKDEV uses illicit insider knowledge of kernel
* major/minor representation... */
--
1.6.3.3
More information about the Openembedded-devel
mailing list