Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37893755
en ru br
ALT Linux repos
S:2.0.8-alt5
5.0: 2.0.8-alt1
4.1: 2.0.8-alt1
4.0: 2.0.8-alt1
3.0: 2.0.8-alt1

Group :: Sound
RPM: fmio

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: fmio-2.0.8-sysconfdir.asp.patch
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)
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin