BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000793 [BusyBox] Other major always 03-21-06 15:36 06-30-06 12:09
Reporter wmb View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version 1.01
Summary 0000793: mdev -s fails with "Illegal argument"
Description The context: Using busybox inside initramfs on a 2.6.15 kernel. ENABLE_FEATURE_MDEV_CONF is off.

The symptom: mdev -s reports "mknod /dev/hdc failed: Invalid argument"

Root cause: /sys/block/hdc/dev contains "22:0\n" ..The newline character confuses the code that converts the minor device number, causing the value of "minor" to be (decimal) -38 (which is '\n' - '0').

The fix:

In mdev.c, replace:

   for (s = temp; *s; s++) {
with:
   for (s = temp; *s && *s != '\n'; s++) {
Additional Information
Attached Files

- Relationships
duplicate of 0000651closed BusyBox mdev -s fails to work. 

- Notes
(0001490)
landley
06-30-06 12:09

svn 13253 fixed this back in January.
 

- Issue History
Date Modified Username Field Change
03-21-06 15:36 wmb New Issue
03-21-06 15:36 wmb Status new => assigned
03-21-06 15:36 wmb Assigned To  => BusyBox
04-11-06 11:02 bernhardf Relationship added duplicate of 0000651
06-30-06 12:09 landley Status assigned => closed
06-30-06 12:09 landley Note Added: 0001490
06-30-06 12:09 landley Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker