10ce2c5ef7
This is a maintenance release containing only minor bug, warning and compilation fixes. * Fixed autocon warnings (Denis Leroy) * Ported to lame 3.100 (from Fedora) * G++ compile fixes (Nick Bailey) * Renamed xdao folder to gcdmaster (Denis Leroy) * pccts format security patch (from Fedora) * Fixed compile issues with glibc >= 2.12 * Gcdmaster segfault fix (Adrian Knoth) * Prevent a FTBFS on kfreebsd (Christoph Egger) * Also look in /etc/default/cdrdao config (Andrew Suffield) * Fix printf format security issues (Frantisek Kluknavsky Fedora) * Add missing options to man page (Honza Horák) * CD_TEXT fix for HL-DT-ST (Kees Cook) * Man page hyphen fixes (Markus Koschany) * Some updates to the old scsilib smake files (Ubuntu patches)
17 lines
413 B
Text
17 lines
413 B
Text
$NetBSD: patch-ah,v 1.3 2018/11/15 01:13:02 markd Exp $
|
|
|
|
--- dao/ScsiIf-freebsd-cam.cc.orig 2007-12-29 12:26:33.000000000 +0000
|
|
+++ dao/ScsiIf-freebsd-cam.cc
|
|
@@ -220,6 +221,12 @@ int ScsiIf::inquiry()
|
|
for (i = 3; i >= 0 && revision_[i] == ' '; i--)
|
|
revision_[i] = 0;
|
|
|
|
+ if (vendor_[0] == 0)
|
|
+ strncpy(vendor_, "UNKNOWN", 8);
|
|
+
|
|
+ if (product_[0] == 0)
|
|
+ strncpy(product_, "UNKNOWN", 8);
|
|
+
|
|
return 0;
|
|
}
|
|
|