Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37047041
en ru br
Репозитории ALT
S:2.0.8-alt5
5.1: 2.0.8-alt1
4.1: 2.0.8-alt1
4.0: 2.0.8-alt1
3.0: 2.0.8-alt1
www.altlinux.org/Changes

Группа :: Звук
Пакет: fmio

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: fmio-2.0.8-sysconfdir.asp.patch
Скачать


--- 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)
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin