diff options
author | Peter Korsgaard <jacmet@sunsite.dk> | 2008-06-07 07:46:01 +0000 |
---|---|---|
committer | Peter Korsgaard <jacmet@sunsite.dk> | 2008-06-07 07:46:01 +0000 |
commit | 68cd7d62ca63111e38da7ea3d8d8886f40c2a2e5 (patch) | |
tree | bb0e4954bb90b3a1cf8d6837340327017197706e /package/busybox/busybox-1.10.2-mdev.patch | |
parent | 197ab1cef220e7beedccdc1ae9f195e0ceaaf538 (diff) | |
download | buildroot-novena-68cd7d62ca63111e38da7ea3d8d8886f40c2a2e5.tar.gz buildroot-novena-68cd7d62ca63111e38da7ea3d8d8886f40c2a2e5.zip |
busybox 1.10.x: bump version
Diffstat (limited to 'package/busybox/busybox-1.10.2-mdev.patch')
-rw-r--r-- | package/busybox/busybox-1.10.2-mdev.patch | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/package/busybox/busybox-1.10.2-mdev.patch b/package/busybox/busybox-1.10.2-mdev.patch deleted file mode 100644 index 37271beaa..000000000 --- a/package/busybox/busybox-1.10.2-mdev.patch +++ /dev/null @@ -1,31 +0,0 @@ ---- busybox-1.10.2/util-linux/mdev.c Thu May 8 17:22:48 2008 -+++ busybox-1.10.2-mdev/util-linux/mdev.c Sat May 24 18:43:40 2008 -@@ -72,8 +72,14 @@ - /* Determine device name, type, major and minor */ - device_name = bb_basename(path); - /* http://kernel.org/doc/pending/hotplug.txt says that only -- * "/sys/block/..." is for block devices. "sys/bus" etc is not! */ -- type = (strncmp(&path[5], "block/", 6) == 0 ? S_IFBLK : S_IFCHR); -+ * "/sys/block/..." is for block devices. "/sys/bus" etc is not! -+ * Since kernel 2.6.25 block devices are also in /sys/class/block. */ -+ /* TODO: would it be acceptable to just use strstr(path, "/block/")? */ -+ if (strncmp(&path[5], "class/block/"+6, 6) != 0 -+ && strncmp(&path[5], "class/block/", 12) != 0) -+ type = S_IFCHR; -+ else -+ type = S_IFBLK; - - if (ENABLE_FEATURE_MDEV_CONF) { - FILE *fp; -@@ -172,8 +178,9 @@ - /* substitute %1..9 with off[1..9], if any */ - n = 0; - s = val; -- while (*s && *s++ == '%') -- n++; -+ while (*s) -+ if (*s++ == '%') -+ n++; - - p = alias = xzalloc(strlen(val) + n * strlen(device_name)); - s = val + 1; |