Skip to main content
Sign in
Snippets Groups Projects
Commit 8c86da73 authored by chrfranke's avatar chrfranke
Browse files

OpenBSD: Fix DEVICESCAN for OpenBSD >= 4.8 (Ticket #123).

git-svn-id: https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk@3207 4ea69e1a-61f1-4043-bf83-b5c94c648137
parent e1159c0f
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,8 @@ Maintainers / Developers Key (alphabetic order):
<DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE>
[CF] OpenBSD: Fix DEVICESCAN for OpenBSD >= 4.8 (Ticket #123).
[CF] daemon_win32.cpp: Remove duplicate assignment (Ticket #120).
[CF] Makefile.am: Do not overwrite existing smartd.conf file
......
......
......@@ -12,6 +12,7 @@ Summary: smartmontools release 5.41
- 'make install' does no longer overwrite an existing
smartd.conf file.
- Linux megaraid: Fix segfault on non-data commands.
- OpenBSD: Fix DEVICESCAN for OpenBSD >= 4.8.
Date 2010-10-16
Summary: smartmontools release 5.40
......
......
......@@ -3,7 +3,7 @@
*
* Home page of code is: http://smartmontools.sourceforge.net
*
* Copyright (C) 2004-8 David Snyder <smartmontools-support@lists.sourceforge.net>
* Copyright (C) 2004-10 David Snyder <smartmontools-support@lists.sourceforge.net>
*
* Derived from os_netbsd.cpp by Sergey Svishchev <smartmontools-support@lists.sourceforge.net>, Copyright (C) 2003-8
*
......@@ -25,8 +25,8 @@
#include "utility.h"
#include "os_openbsd.h"
const char *os_XXXX_c_cvsid = "$Id: os_openbsd.cpp,v 1.17 2008/06/12 21:46:31 ballen4705 Exp $" \
ATACMDS_H_CVSID CONFIG_H_CVSID INT64_H_CVSID OS_OPENBSD_H_CVSID SCSICMDS_H_CVSID UTILITY_H_CVSID;
const char * os_openbsd_cpp_cvsid = "$Id$"
OS_OPENBSD_H_CVSID;
/* global variable holding byte count of allocated memory */
extern long long bytes;
......@@ -121,6 +121,9 @@ get_dev_names(char ***names, const char *prefix)
if (strncmp(p, prefix, strlen(prefix))) {
continue;
}
char * u = strchr(p, ':');
if (u)
*u = 0;
mp[n] = (char *)malloc(strlen(net_dev_prefix) + strlen(p) + 2);
if (!mp[n]) {
pout("Out of memory constructing scan device list\n");
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment