Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37883390
en ru br
ALT Linux repos
S:0.2.41-alt10
5.0: 0.2.41-alt3
4.1: 0.2.39-alt0.M41.1
4.0: 0.2.36-alt5
3.0: 0.2.34-alt1.2

Group :: System/Servers
RPM: esound

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: esound-0.2.37-alt-esd_spawn_options.patch
Download


diff -durN esound-0.2.28.orig/esd_config.c esound-0.2.28/esd_config.c
--- esound-0.2.28.orig/esd_config.c	2002-06-19 16:14:24 +0400
+++ esound-0.2.28/esd_config.c	2002-06-19 23:33:26 +0400
@@ -75,6 +75,7 @@
   char aline[LINEBUF_SIZE];
   char *key, *value, *start;
   int i;
+  int k=0;
 
   while(fgets(aline, sizeof(aline), fh))
     {
@@ -118,7 +119,12 @@
 	}
       else if(!strcasecmp(key, "spawn_options"))
 	{
-	  strcpy(esd_spawn_options, value);
+    /* permit multiple lines with spawn_options in esd.conf */
+	    k++;
+	    if(k == 1)
+	    strcpy(esd_spawn_options, "");
+    	    strcat(esd_spawn_options, " ");	  
+    	    strcat(esd_spawn_options, value);
 	}
       else if(!strcasecmp(key, "spawn_wait_ms"))
 	{
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin