openbsd-ports/audio/pms/patches/patch-src_config_cpp
jasper ba25f40b56 - update pms to 0.42
- add missing module
2010-08-18 13:56:03 +00:00

18 lines
514 B
Plaintext

$OpenBSD: patch-src_config_cpp,v 1.3 2010/08/18 13:56:04 jasper Exp $
Don't bail out when the default configuration file is not found,
defaults just works fine.
--- src/config.cpp.orig Tue Aug 10 00:06:16 2010
+++ src/config.cpp Tue Aug 10 00:06:39 2010
@@ -407,6 +407,9 @@ bool Configurator::source(string fn)
if (fd == NULL)
{
+ if (fn.substr(fn.length() - 7,7) == ".pms/rc")
+ return true;
+
pms->msg->code = CERR_NO_FILE;
pms->msg->str = fn + _(": could not open file.\n");
return false;