scsi_id: accept tabs in /etc/scsi_id.conf

This commit is contained in:
Kay Sievers 2007-02-25 22:14:14 +01:00
parent e7c39acbe7
commit 58310f6698
2 changed files with 3 additions and 3 deletions

View File

@ -154,7 +154,7 @@ of 312345:
.sp .sp
.nf .nf
BUS=="scsi", PROGRAM=="/sbin/scsi_id -d %N -s %p", RESULT=="312345", NAME="disk%n" SUBSYSTEMS=="scsi", PROGRAM=="/sbin/scsi_id -d %N -s %p", RESULT=="312345", NAME="disk%n"
.fi .fi
.P .P

View File

@ -377,11 +377,11 @@ static int get_file_options(const char *vendor, const char *model,
/* /*
* argv[0] at 0 is skipped by getopt, but * argv[0] at 0 is skipped by getopt, but
* store the buffer address there for * store the buffer address there for
* alter freeing. * later freeing
*/ */
(*newargv)[c] = buffer; (*newargv)[c] = buffer;
for (c = 1; c < *argc; c++) for (c = 1; c < *argc; c++)
(*newargv)[c] = strsep(&buffer, " "); (*newargv)[c] = strsep(&buffer, " \t");
} }
} else { } else {
/* No matches */ /* No matches */