diff options
author | rillig <rillig> | 2006-07-02 09:53:00 +0000 |
---|---|---|
committer | rillig <rillig> | 2006-07-02 09:53:00 +0000 |
commit | e420807bdb4a9402a06a31d88848ecd5eb9b7055 (patch) | |
tree | bdccfa033762030e8f561978d32e324d7d4247b0 /audio/ubs/patches | |
parent | f5f422abbe6f609120d4faee69e0c45b9f4314e1 (diff) | |
download | pkgsrc-e420807bdb4a9402a06a31d88848ecd5eb9b7055.tar.gz |
Fixed the path to the configuration file. Bumped PKGREVISION.
Diffstat (limited to 'audio/ubs/patches')
-rw-r--r-- | audio/ubs/patches/patch-ac | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/audio/ubs/patches/patch-ac b/audio/ubs/patches/patch-ac new file mode 100644 index 00000000000..fa1f21e51a7 --- /dev/null +++ b/audio/ubs/patches/patch-ac @@ -0,0 +1,17 @@ +$NetBSD: patch-ac,v 1.1 2006/07/02 09:53:00 rillig Exp $ + +Fixed the way the pathname of the configuration file is built up. + +--- lib/read_config.c.orig 2003-10-26 04:36:51.000000000 +0100 ++++ lib/read_config.c 2006-07-02 09:02:07.000000000 +0200 +@@ -52,8 +52,8 @@ int read_config(char *fname, char *secti + int bad = NO, line_ct = 0, res; + + if(fname == NULL) { +- snprintf(buf, STRBUF, "%s/%s", ubs_table_data(&GLOBAL, "prefix"), DEF_CONFIG); +- if((config_fp = fopen(buf, "r")) == NULL) { ++ fname = DEF_CONFIG; ++ if((config_fp = fopen(fname, "r")) == NULL) { + return NO_FILE; + } + } |