mirror of
https://github.com/ElvishArtisan/rivendell.git
synced 2025-04-21 16:38:54 +02:00
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:
parent
9a3605e79c
commit
2a01ee4e1f
@ -20560,3 +20560,6 @@
|
|||||||
the value of the 'Default Channels' setting in rdadmin(1).
|
the value of the 'Default Channels' setting in rdadmin(1).
|
||||||
2020-11-09 Fred Gleason <fredg@paravelsystems.com>
|
2020-11-09 Fred Gleason <fredg@paravelsystems.com>
|
||||||
* Incremented the package version to 3.4.1int5.
|
* 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).
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
//
|
//
|
||||||
// Functions for getting system status.
|
// 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
|
// This program is free software; you can redistribute it and/or modify
|
||||||
// it under the terms of the GNU Library General Public License
|
// it under the terms of the GNU Library General Public License
|
||||||
@ -23,6 +23,7 @@
|
|||||||
#include <syslog.h>
|
#include <syslog.h>
|
||||||
#include <errno.h>
|
#include <errno.h>
|
||||||
|
|
||||||
|
#include <QDir>
|
||||||
#include <qsqlquery.h>
|
#include <qsqlquery.h>
|
||||||
#include <qstringlist.h>
|
#include <qstringlist.h>
|
||||||
#include <qvariant.h>
|
#include <qvariant.h>
|
||||||
@ -36,6 +37,12 @@ bool RDAudioStoreValid(RDConfig *config)
|
|||||||
char line[1024];
|
char line[1024];
|
||||||
bool ret=false;
|
bool ret=false;
|
||||||
|
|
||||||
|
//
|
||||||
|
// Make sure the filesystem is actually mounted
|
||||||
|
//
|
||||||
|
QDir dir(config->audioRoot());
|
||||||
|
dir.count();
|
||||||
|
|
||||||
if((f=fopen("/etc/mtab","r"))==NULL) {
|
if((f=fopen("/etc/mtab","r"))==NULL) {
|
||||||
rda->syslog(LOG_ERR,"unable to read mtab(5) [%s]",strerror(errno));
|
rda->syslog(LOG_ERR,"unable to read mtab(5) [%s]",strerror(errno));
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user