chiark / gitweb /
scsi_id: accept tabs in /etc/scsi_id.conf
authorKay Sievers <kay.sievers@suse.de>
Sun, 25 Feb 2007 21:14:14 +0000 (22:14 +0100)
committerKay Sievers <kay.sievers@suse.de>
Sun, 25 Feb 2007 21:14:14 +0000 (22:14 +0100)
extras/scsi_id/scsi_id.8
extras/scsi_id/scsi_id.c

index 86237a7..ba7e42f 100644 (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
 
index 7fd6066..c00145f 100644 (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  */