ports/sysutils/smartmontools/files/patch-os__freebsd.cpp
Pav Lucistnik 4cac24ee80 - 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
2007-03-25 16:08:55 +00:00

14 lines
523 B
C++

$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