summaryrefslogtreecommitdiff
path: root/sysutils/cdrdao/patches/patch-ag
diff options
context:
space:
mode:
authorfredb <fredb@pkgsrc.org>2004-07-19 02:21:57 +0000
committerfredb <fredb@pkgsrc.org>2004-07-19 02:21:57 +0000
commit15259ce4a0e6cae74f6f3b7c09359d0fb8674882 (patch)
tree008adbae3f6bca9587a95820aca0ecbdef437124 /sysutils/cdrdao/patches/patch-ag
parent99c094ca000ea25119fe5c9792985e7409c8d7e9 (diff)
downloadpkgsrc-15259ce4a0e6cae74f6f3b7c09359d0fb8674882.tar.gz
Fill in blank "vendor" and "product_id" fields with "UNKNOWN", to make it
possible to match a valid entry in ~/.cdrdao-drivers.
Diffstat (limited to 'sysutils/cdrdao/patches/patch-ag')
-rw-r--r--sysutils/cdrdao/patches/patch-ag20
1 files changed, 20 insertions, 0 deletions
diff --git a/sysutils/cdrdao/patches/patch-ag b/sysutils/cdrdao/patches/patch-ag
new file mode 100644
index 00000000000..a0b64e90cec
--- /dev/null
+++ b/sysutils/cdrdao/patches/patch-ag
@@ -0,0 +1,20 @@
+$NetBSD: patch-ag,v 1.3 2004/07/19 02:21:57 fredb Exp $
+
+--- dao/ScsiIf-win.cc.orig 2001-09-03 12:37:42.000000000 -0500
++++ dao/ScsiIf-win.cc
+@@ -355,5 +355,15 @@
+ revision_[i] = 0;
+ }
+
++ if (vendor_[0] == 0)
++ {
++ strncpy(vendor_, "UNKNOWN", 8);
++ }
++
++ if (product_[0] == 0)
++ {
++ strncpy(product_, "UNKNOWN", 8);
++ }
++
+ return 0;
+ }