Merge pull request #16257 from keszybz/two-fuzzer-issues

Two fuzzer issues
This commit is contained in:
Lennart Poettering
2020-06-25 14:40:35 +02:00
committed by GitHub
9 changed files with 50 additions and 103 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ static int run(int argc, char *argv[]) {
action = argv[1];
devpath = argv[2];
assert_se(udev_rules_new(&rules, RESOLVE_NAME_EARLY) == 0);
assert_se(udev_rules_load(&rules, RESOLVE_NAME_EARLY) == 0);
const char *syspath = strjoina("/sys", devpath);
r = device_new_from_synthetic_event(&dev, syspath, action);