summaryrefslogtreecommitdiff
path: root/sysutils/smartmontools-devel/files/patch-os__freebsd.cpp
diff options
context:
space:
mode:
authorPav Lucistnik <pav@FreeBSD.org>2007-03-25 16:08:55 +0000
committerPav Lucistnik <pav@FreeBSD.org>2007-03-25 16:08:55 +0000
commit4cac24ee80c7e6f774191f6ff63ac36ccdc441ba (patch)
tree6109624963cb378f94f2d02bfd885616f72f8e8f /sysutils/smartmontools-devel/files/patch-os__freebsd.cpp
parentRevert to using goffice1 for these ports until they catch up with the new (diff)
- Fix smartd to detect drives if the first drive has two-digit number (like
ad10) - Recognize some new Western Digital Caviar SE drives PR: ports/110806 Submitted by: marck
Notes
Notes: svn path=/head/; revision=188292
Diffstat (limited to 'sysutils/smartmontools-devel/files/patch-os__freebsd.cpp')
-rw-r--r--sysutils/smartmontools-devel/files/patch-os__freebsd.cpp14
1 files changed, 14 insertions, 0 deletions
diff --git a/sysutils/smartmontools-devel/files/patch-os__freebsd.cpp b/sysutils/smartmontools-devel/files/patch-os__freebsd.cpp
new file mode 100644
index 000000000000..7a20564c8cb9
--- /dev/null
+++ b/sysutils/smartmontools-devel/files/patch-os__freebsd.cpp
@@ -0,0 +1,14 @@
+
+$FreeBSD$
+
+--- os_freebsd.cpp.orig
++++ os_freebsd.cpp
+@@ -1008,7 +1008,7 @@
+ // to first list. Turn on NOCHECK for second call. This results in no
+ // error if no more matches found, however it does append the actual
+ // pattern to the list of paths....
+- if ((retglob=glob(pattern1, GLOB_ERR, NULL, &globbuf)) ||
++ if ((retglob=glob(pattern1, GLOB_ERR|GLOB_NOCHECK, NULL, &globbuf)) ||
+ (retglob=glob(pattern2, GLOB_ERR|GLOB_APPEND|GLOB_NOCHECK,NULL,&globbuf))) {
+ int retval = -1;
+ // glob failed