summaryrefslogtreecommitdiff
path: root/udev/udevadm-test.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/udevadm-test.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/udevadm-test.c')
-rw-r--r--udev/udevadm-test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udevadm-test.c b/udev/udevadm-test.c
index ceeead0c8a..2c8e0bff98 100644
--- a/udev/udevadm-test.c
+++ b/udev/udevadm-test.c
@@ -89,7 +89,7 @@ int udevadm_test(struct udev *udev, int argc, char *argv[])
"some values may be different, or not available at a simulation run.\n"
"\n");
- rules = udev_rules_new(udev, 0);
+ rules = udev_rules_new(udev, 1);
if (rules == NULL) {
fprintf(stderr, "error reading rules\n");
rc = 1;