From 00e184dfebff1693560063a05fadfea612d66a9f Mon Sep 17 00:00:00 2001 From: Benjamin Schieder Date: Fri, 28 Oct 2005 17:04:26 +0000 Subject: [PATCH] Benjamin Schieder: Enable dietlibc for udev (with patch) [2005101819082025006] (https://www.rocklinux.net/submaster) git-svn-id: http://www.rocklinux.org/svn/rock-linux/trunk@6534 c5f82cb5-29bc-0310-9cd0-bff59a50e3bc --- .../base/dietlibc/pkg_patch/pkg_udev.patch | 30 +++++++++++++++++++ package/base/udev/udev.desc | 2 +- 2 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 package/base/dietlibc/pkg_patch/pkg_udev.patch diff --git a/package/base/dietlibc/pkg_patch/pkg_udev.patch b/package/base/dietlibc/pkg_patch/pkg_udev.patch new file mode 100644 index 000000000..7ccc226d6 --- /dev/null +++ b/package/base/dietlibc/pkg_patch/pkg_udev.patch @@ -0,0 +1,30 @@ +--- ./udev_rules_parse.c 2005-10-16 10:58:04.000000000 +0200 ++++ ./udev_rules_parse.c 2005-10-16 10:59:47.000000000 +0200 +@@ -205,7 +205,7 @@ + static int add_rule_key(struct udev_rule *rule, struct key *key, + enum key_operation operation, const char *value) + { +- size_t val_len = strnlen(value, PATH_SIZE); ++ size_t val_len = strlen(value); + + key->operation = operation; + +@@ -219,7 +219,7 @@ + static int add_rule_key_pair(struct udev_rule *rule, struct key_pairs *pairs, + enum key_operation operation, const char *key, const char *value) + { +- size_t key_len = strnlen(key, PATH_SIZE); ++ size_t key_len = strlen(key); + + if (pairs->count >= PAIRS_MAX) { + err("skip, too many keys in a single rule"); +--- ./udevstart.c 2005-10-16 11:00:53.000000000 +0200 ++++ ./udevstart.c 2005-10-16 11:01:05.000000000 +0200 +@@ -120,7 +120,6 @@ + char path[PATH_SIZE]; + + /* clear and set environment for next event */ +- clearenv(); + setenv("ACTION", "add", 1); + setenv("DEVPATH", devpath, 1); + setenv("SUBSYSTEM", subsystem, 1); diff --git a/package/base/udev/udev.desc b/package/base/udev/udev.desc index 66100c1b2..65f9f36f3 100644 --- a/package/base/udev/udev.desc +++ b/package/base/udev/udev.desc @@ -38,7 +38,7 @@ [M] fake [C] base/system base/kernel -[F] CORE +[F] CORE DIETLIBC [L] GPL [S] Beta