Anonymous | Login | Signup for a new account | 11-10-2008 10:59 PST |
Main | My View | View Issues | Change Log | Docs |
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 | |||||||||
|
Copyright © 2000 - 2006 Mantis Group |