2020-11-14 Fred Gleason <fredg@paravelsystems.com>

* Fixed a bug in rdmonitor(1) that caused false indications of
	a failed audio store when used with autofs(8).

Signed-off-by: Fred Gleason <fredg@paravelsystems.com>
This commit is contained in:
Fred Gleason 2020-11-14 17:45:36 -05:00
parent 9a3605e79c
commit 2a01ee4e1f
2 changed files with 11 additions and 1 deletions

View File

@ -20560,3 +20560,6 @@
the value of the 'Default Channels' setting in rdadmin(1).
2020-11-09 Fred Gleason <fredg@paravelsystems.com>
* Incremented the package version to 3.4.1int5.
2020-11-14 Fred Gleason <fredg@paravelsystems.com>
* Fixed a bug in rdmonitor(1) that caused false indications of
a failed audio store when used with autofs(8).

View File

@ -2,7 +2,7 @@
//
// Functions for getting system status.
//
// (C) Copyright 2016-2019 Fred Gleason <fredg@paravelsystems.com>
// (C) Copyright 2016-2020 Fred Gleason <fredg@paravelsystems.com>
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU Library General Public License
@ -23,6 +23,7 @@
#include <syslog.h>
#include <errno.h>
#include <QDir>
#include <qsqlquery.h>
#include <qstringlist.h>
#include <qvariant.h>
@ -36,6 +37,12 @@ bool RDAudioStoreValid(RDConfig *config)
char line[1024];
bool ret=false;
//
// Make sure the filesystem is actually mounted
//
QDir dir(config->audioRoot());
dir.count();
if((f=fopen("/etc/mtab","r"))==NULL) {
rda->syslog(LOG_ERR,"unable to read mtab(5) [%s]",strerror(errno));
return false;