summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 4c5ba2f)
raw | patch | inline | side by side (parent: 4c5ba2f)
author | octo <octo> | |
Tue, 14 Mar 2006 08:52:10 +0000 (08:52 +0000) | ||
committer | octo <octo> | |
Tue, 14 Mar 2006 08:52:10 +0000 (08:52 +0000) |
ChangeLog | patch | blob | history | |
collectd.spec | patch | blob | history | |
configure.in | patch | blob | history | |
debian/changelog | patch | blob | history | |
src/utils_mount.c | patch | blob | history |
diff --git a/ChangeLog b/ChangeLog
index 76273a491db3f296a76f3a15c762e6253a22f18f..7291b5ce509d7c59e207842caa7e03e4c9996856 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
+2006-03-14, Version 3.8.2
+ * `utils_mount.c' has been changed to not use the `MNTTAB' defined by
+ the GNU libc, because it points to `/etc/fstab' rather than
+ `/etc/mtab'.
+
2006-03-13, Version 3.8.1
* Fixes for building collectd unter FreeBSD, Mac OS X and Solaris.
* Fixes in the debian `postinst' and `init.d' scripts.
diff --git a/collectd.spec b/collectd.spec
index 41d2cbebffc614629a44ff156d20444291c6294e..a74acf12b1d1403d1164e4c93de64742a5651391 100644 (file)
--- a/collectd.spec
+++ b/collectd.spec
%attr(0444,root,root) %{_libdir}/%{name}/sensors.so*
%changelog
+* Thu Mar 14 2006 Florian octo Forster <octo@verplant.org> 3.8.2-1
+- New upstream version
+
* Thu Mar 13 2006 Florian octo Forster <octo@verplant.org> 3.8.1-1
- New upstream version
diff --git a/configure.in b/configure.in
index 1c8617d31c02244d331e118fcd1e0ddc6ad57b8f..b7ea8439d6a916c254e8d63ce22c4ccac91382f1 100644 (file)
--- a/configure.in
+++ b/configure.in
dnl Process this file with autoconf to produce a configure script.
-AC_INIT(collectd, 3.8.1)
+AC_INIT(collectd, 3.8.2)
AC_CONFIG_SRCDIR(src/collectd.c)
AC_CONFIG_HEADERS(src/config.h)
AM_INIT_AUTOMAKE(dist-bzip2)
diff --git a/debian/changelog b/debian/changelog
index 0a7872dc6b91542bb9325820c46b06e48d58ac07..de8dbb3625c418e514ed1a36ee240354b3c7e542 100644 (file)
--- a/debian/changelog
+++ b/debian/changelog
+collectd (3.8.2-1) unstable; urgency=low
+
+ * New upstream version
+
+ -- Florian Forster <octo@verplant.org> Tue, 14 Mar 2006 09:47:00 +0200
+
collectd (3.8.1-1) unstable; urgency=low
* New upstream version
diff --git a/src/utils_mount.c b/src/utils_mount.c
index 72ce930130bfb45dbb9b50c78ffdb9a336414f06..176040aa88942016dc3584ab0b7db38ef3f03141 100644 (file)
--- a/src/utils_mount.c
+++ b/src/utils_mount.c
#define XFS_SUPER_MAGIC_STR "XFSB"
#define XFS_SUPER_MAGIC2_STR "BSFX"
#endif
+
#include "utils_debug.h"
#include "utils_mount.h"
# include <sys/mnttab.h>
#endif
-#ifndef MNTTAB
-# if defined(_PATH_MOUNTED)
-# define MNTTAB _PATH_MOUNTED
-# elif defined(MNT_MNTTAB)
-# define MNTTAB MNT_MNTTAB
-# elif defined(MNTTABNAME)
-# define MNTTAB MNTTABNAME
-# elif defined(KMTAB)
-# define MNTTAB KMTAB
-# else
-# define MNTTAB "/etc/mnttab"
-# endif
+#if HAVE_PATHS_H
+# include <paths.h>
+#endif
+
+#ifdef COLLECTD_MNTTAB
+# undef COLLECTD_MNTTAB
+#endif
+
+#if defined(_PATH_MOUNTED) /* glibc */
+# define COLLECTD_MNTTAB _PATH_MOUNTED
+#elif defined(MNTTAB) /* Solaris */
+# define COLLECTD_MNTTAB MNTTAB
+#elif defined(MNT_MNTTAB)
+# define COLLECTD_MNTTAB MNT_MNTTAB
+#elif defined(MNTTABNAME)
+# define COLLECTD_MNTTAB MNTTABNAME
+#elif defined(KMTAB)
+# define COLLECTD_MNTTAB KMTAB
+#else
+# define COLLECTD_MNTTAB "/etc/mnttab"
#endif
/* *** *** *** ********************************************* *** *** *** */
struct mntent *mnt;
struct tabmntent *mntlist;
- if(listmntent(&mntlist, MNTTAB, NULL, NULL) < 0) {
+ if(listmntent(&mntlist, COLLECTD_MNTTAB, NULL, NULL) < 0) {
DBG("calling listmntent() failed: %s", strerror(errno));
}
cu_mount_t *last = NULL;
cu_mount_t *new = NULL;
- if ((fp = fopen (MNTTAB, "r")) == NULL)
+ DBG ("(void); COLLECTD_MNTTAB = %s", COLLECTD_MNTTAB);
+
+ if ((fp = fopen (COLLECTD_MNTTAB, "r")) == NULL)
+ {
+ syslog (LOG_ERR, "fopen (%s): %s", COLLECTD_MNTTAB, strerror (errno));
return (NULL);
+ }
while (getmntent (fp, &mt) == 0)
{
cu_mount_t *last = NULL;
cu_mount_t *new = NULL;
- if ((fp = setmntent (MNTTAB, "r")) == NULL)
+ DBG ("(void); COLLECTD_MNTTAB = %s", COLLECTD_MNTTAB);
+
+ if ((fp = setmntent (COLLECTD_MNTTAB, "r")) == NULL)
+ {
+ syslog (LOG_ERR, "setmntent (%s): %s", COLLECTD_MNTTAB, strerror (errno));
return (NULL);
+ }
while ((me = getmntent (fp)) != NULL)
{
new->device = get_device_name (new->options);
new->next = NULL;
+ DBG ("new = {dir = %s, spec_device = %s, type = %s, options = %s, device = %s}",
+ new->dir, new->spec_device, new->type, new->options, new->device);
+
/* Append to list */
if (first == NULL)
{
endmntent (fp);
+ DBG ("return (0x%p)", (void *) first);
+
return (first);
}
#endif /* HAVE_GETMNTENT */
cu_mount_t *this;
cu_mount_t *next;
+ DBG ("(list = 0x%p)", (void *) list);
+
for (this = list; this != NULL; this = next)
{
next = this->next;