mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
1.9 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/dietlibc/pkg_patch/pkg_udev.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. --- ./udev_rules_parse.c 2005-10-16 10:58:04.000000000 +0200
  20. +++ ./udev_rules_parse.c 2005-10-16 10:59:47.000000000 +0200
  21. @@ -205,7 +205,7 @@
  22. static int add_rule_key(struct udev_rule *rule, struct key *key,
  23. enum key_operation operation, const char *value)
  24. {
  25. - size_t val_len = strnlen(value, PATH_SIZE);
  26. + size_t val_len = strlen(value);
  27. key->operation = operation;
  28. @@ -219,7 +219,7 @@
  29. static int add_rule_key_pair(struct udev_rule *rule, struct key_pairs *pairs,
  30. enum key_operation operation, const char *key, const char *value)
  31. {
  32. - size_t key_len = strnlen(key, PATH_SIZE);
  33. + size_t key_len = strlen(key);
  34. if (pairs->count >= PAIRS_MAX) {
  35. err("skip, too many keys in a single rule");
  36. --- ./udevstart.c 2005-10-16 11:00:53.000000000 +0200
  37. +++ ./udevstart.c 2005-10-16 11:01:05.000000000 +0200
  38. @@ -120,7 +120,6 @@
  39. char path[PATH_SIZE];
  40. /* clear and set environment for next event */
  41. - clearenv();
  42. setenv("ACTION", "add", 1);
  43. setenv("DEVPATH", devpath, 1);
  44. setenv("SUBSYSTEM", subsystem, 1);