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:
parent
f4f3249539
commit
043543f1bb
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user