diff options
Diffstat (limited to 'audio/tap_plugins/reverbed-default-config.diff')
-rw-r--r-- | audio/tap_plugins/reverbed-default-config.diff | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/audio/tap_plugins/reverbed-default-config.diff b/audio/tap_plugins/reverbed-default-config.diff new file mode 100644 index 0000000000..e9df247d25 --- /dev/null +++ b/audio/tap_plugins/reverbed-default-config.diff @@ -0,0 +1,26 @@ +diff -Naur tap-reverbed-r0/src/file_io.c tap-reverbed-r0.patched/src/file_io.c +--- tap-reverbed-r0/src/file_io.c 2004-06-18 07:19:01.000000000 -0400 ++++ tap-reverbed-r0.patched/src/file_io.c 2015-11-04 16:11:02.000000000 -0500 +@@ -62,6 +62,8 @@ + } + + ++/* default config, used as fallback if ~/.reverbed not found */ ++#define SYS_REVERBED "/etc/reverbed/reverbed.conf" + + REVTYPE * + parse_input_file(void) { +@@ -85,8 +87,11 @@ + home = "."; + sprintf(path, "%s/%s", home, NAME_REVERBED); + if ((infile = fopen(path,"rt")) == NULL) { +- fprintf(stderr, "Unable to open %s\n", path); +- return(NULL); ++ fprintf(stderr, "Unable to open %s, trying %s\n", path, SYS_REVERBED); ++ if ((infile = fopen(SYS_REVERBED ,"rt")) == NULL) { ++ fprintf(stderr, "Unable to open %s", SYS_REVERBED); ++ return(NULL); ++ } + } + + if ((root = malloc(sizeof(REVTYPE))) == NULL) { |