Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regex support seems sketchy (libudev) #177

Open
yannickbt64 opened this issue Aug 21, 2019 · 1 comment
Open

Regex support seems sketchy (libudev) #177

yannickbt64 opened this issue Aug 21, 2019 · 1 comment
Labels
feedback Awaits feedback

Comments

@yannickbt64
Copy link

yannickbt64 commented Aug 21, 2019

Hi,

Using libudev for matching devices in /dev/input, I see the matching using regular expressions doesn't seem to act correctly.

For example:

    struct udev_enumerate *udev_enum = udev_enumerate_new(m_udev);

    udev_enumerate_add_match_subsystem(udev_enum, "input");
    udev_enumerate_add_match_sysname(udev_enum, "event[0-9][0-9]*");
    udev_enumerate_scan_devices(udev_enum);

This code returns no matches despite event0 up to event3 exists.
On standard udev (from systemd), it works fine, under ubuntu 18.04.

But when using buildroot 2018.08 (which uses eudev 3.2.5), this stops working.

Looking at https://linux.die.net/man/8/udev, those should work.

@bbonev
Copy link
Member

bbonev commented Oct 3, 2023

Can you please confirm if that is still the case with the latest release?

@bbonev bbonev added the feedback Awaits feedback label Oct 3, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feedback Awaits feedback
Projects
None yet
Development

No branches or pull requests

2 participants