1
0
mirror of https://github.com/systemd/systemd.git synced 2024-10-30 06:25:37 +03:00

udevadm: trigger: drop unnecessary slash

This commit is contained in:
Yu Watanabe 2022-02-02 12:53:29 +09:00
parent f4f3249539
commit 043543f1bb

View File

@ -382,7 +382,7 @@ int trigger_main(int argc, char *argv[], void *userdata) {
case ARG_NAME: {
_cleanup_(sd_device_unrefp) sd_device *dev = NULL;
r = find_device(optarg, "/dev/", &dev);
r = find_device(optarg, "/dev", &dev);
if (r < 0)
return log_error_errno(r, "Failed to open the device '%s': %m", optarg);