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
.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
.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
* store the buffer address there for
* alter freeing.
* later freeing
*/
(*newargv)[c] = buffer;
for (c = 1; c < *argc; c++)
(*newargv)[c] = strsep(&buffer, " ");
(*newargv)[c] = strsep(&buffer, " \t");
}
} else {
/* No matches */