Group :: Sound
RPM: fmio
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: fmio-2.0.8-sysconfdir.asp.patch
Download
Download
--- fmio-2.0.8/xsrc/wmfmio.c.etc 2003-05-13 18:08:44.000000000 +0300
+++ fmio-2.0.8/xsrc/wmfmio.c 2006-08-09 20:32:08.000000000 +0300
@@ -58,6 +58,10 @@ char *FMIO = "fmio";
#define TRUE 1
#define FALSE 0
+#ifndef SYSCONFDIR
+#define SYSCONFDIR "/etc"
+#endif
+
const char exec_err[] = "%s execution error";
unsigned int max_presets;
@@ -167,12 +171,12 @@ main(int argc,char *argv[]) {
strncat(temp, RCFILE, TMPBUFSIZE);
temp[TMPBUFSIZE] = '\0';
if ( ParseRCFile(temp) == 1 ) {
- strncpy(temp, "/etc/", TMPBUFSIZE);
+ strncpy(temp, SYSCONFDIR, TMPBUFSIZE);
temp[TMPBUFSIZE] = '\0';
strncat(temp, RCFILE, TMPBUFSIZE);
temp[TMPBUFSIZE] = '\0';
if (ParseRCFile(temp) == 1)
- errx(1, "~/.%s or /etc/%s not found", RCFILE, RCFILE);
+ errx(1, "~/.%s or %s/%s not found", RCFILE, SYSCONFDIR, RCFILE);
}
if (cmdline_preset == ON)