[systemd-commits] src/udev
Kay Sievers
kay at kemper.freedesktop.org
Sun May 27 06:17:15 PDT 2012
src/udev/scsi_id/scsi_serial.c | 1 +
1 file changed, 1 insertion(+)
New commits:
commit 9159b90a4f78a83b8f751716f57fcf6d979676fe
Author: Jean Delvare <jdelvare at suse.de>
Date: Fri May 25 16:08:00 2012 +0200
scsi_id: fix truncated model in by-id device links
Do not forget the leading "S" when appending the serial number,
otherwise we chop the last character of the model name.
Addresses: https://bugzilla.novell.com/show_bug.cgi?id=763397
Signed-off-by: Jean Delvare <jdelvare at suse.de>
Signed-off-by: Petr Uzel <petr.uzel at suse.cz>
diff --git a/src/udev/scsi_id/scsi_serial.c b/src/udev/scsi_id/scsi_serial.c
index 8440b4c..5ad0c31 100644
--- a/src/udev/scsi_id/scsi_serial.c
+++ b/src/udev/scsi_id/scsi_serial.c
@@ -799,6 +799,7 @@ static int do_scsi_page80_inquiry(struct udev *udev,
ser_ind = prepend_vendor_model(udev, dev_scsi, &serial[1]);
if (ser_ind < 0)
return 1;
+ ser_ind++; /* for the leading 'S' */
for (i = 4; i < len + 4; i++, ser_ind++)
serial[ser_ind] = buf[i];
}
More information about the systemd-commits
mailing list