- /* remove sysfs_path if given */
- if (strncmp(argv[1], sysfs_path, strlen(sysfs_path)) == 0)
- devpath = argv[1] + strlen(sysfs_path);
- else
- if (argv[1][0] != '/') {
- /* prepend '/' if missing */
- strfieldcpy(temp, "/");
- strfieldcat(temp, argv[1]);
- devpath = temp;
- } else {
- devpath = argv[1];
- }