summaryrefslogtreecommitdiffstats
path: root/abs/core-testing/klibc-udev/disable-uid-gid-lookup.patch
diff options
context:
space:
mode:
Diffstat (limited to 'abs/core-testing/klibc-udev/disable-uid-gid-lookup.patch')
-rw-r--r--abs/core-testing/klibc-udev/disable-uid-gid-lookup.patch33
1 files changed, 33 insertions, 0 deletions
diff --git a/abs/core-testing/klibc-udev/disable-uid-gid-lookup.patch b/abs/core-testing/klibc-udev/disable-uid-gid-lookup.patch
new file mode 100644
index 0000000..578c3ee
--- /dev/null
+++ b/abs/core-testing/klibc-udev/disable-uid-gid-lookup.patch
@@ -0,0 +1,33 @@
+diff -Nur udev-132.orig/udev/udev-util.c udev-132/udev/udev-util.c
+--- udev-132.orig/udev/udev-util.c 2008-11-06 02:56:15.000000000 +0100
++++ udev-132/udev/udev-util.c 2008-11-09 18:28:30.000000000 +0100
+@@ -126,6 +126,7 @@
+
+ uid_t util_lookup_user(struct udev *udev, const char *user)
+ {
++ /*
+ char *endptr;
+ int buflen = sysconf(_SC_GETPW_R_SIZE_MAX);
+ char buf[buflen];
+@@ -147,11 +148,13 @@
+ err(udev, "specified user '%s' unknown\n", user);
+ else
+ err(udev, "error resolving user '%s': %m\n", user);
++ */
+ return 0;
+ }
+
+ extern gid_t util_lookup_group(struct udev *udev, const char *group)
+ {
++ /*
+ char *endptr;
+ int buflen = sysconf(_SC_GETGR_R_SIZE_MAX);
+ char buf[buflen];
+@@ -173,6 +176,7 @@
+ err(udev, "specified group '%s' unknown\n", group);
+ else
+ err(udev, "error resolving group '%s': %m\n", group);
++ */
+ return 0;
+ }
+