summaryrefslogtreecommitdiff
path: root/udev/test-udev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-10-24 10:51:04 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-10-24 10:51:04 +0200
commit154a7b8428731fb90cc639439fcdb98003471298 (patch)
treeda7ab5db6896d27b9a0238e0b6a76d417e8f1538 /udev/test-udev.c
parentf6bb9e981aea06f1a7460868fb60f1a9ff14c504 (diff)
cache uid/gid during rule parsing
This cuts down the number of parsing /etc/group from ~700 to 11, with some large rule files installed.
Diffstat (limited to 'udev/test-udev.c')
-rw-r--r--udev/test-udev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/test-udev.c b/udev/test-udev.c
index 76045132bf..ff1c353e66 100644
--- a/udev/test-udev.c
+++ b/udev/test-udev.c
@@ -81,7 +81,7 @@ int main(int argc, char *argv[])
goto exit;
}
- rules = udev_rules_new(udev, 0);
+ rules = udev_rules_new(udev, 1);
util_strlcpy(syspath, udev_get_sys_path(udev), sizeof(syspath));
util_strlcat(syspath, devpath, sizeof(syspath));