diff --git a/commands/mount.c b/commands/mount.c index 4cf1179..834b063 100644 --- a/commands/mount.c +++ b/commands/mount.c @@ -76,10 +76,7 @@ struct cdev *cdev; const char *path; - if (!strncmp(devstr, "/dev/", 5)) - devstr += 5; - - device_detect_by_name(devstr); + device_detect_by_name(devpath_to_name(devstr)); cdev = cdev_by_name(devstr); if (!cdev)