File: 01_tmpfile.dpatch

package info (click to toggle)
spread 3.17.3-5
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k
  • size: 1,748 kB
  • ctags: 2,313
  • sloc: ansic: 15,627; sh: 2,591; java: 2,290; perl: 556; yacc: 523; makefile: 240; lex: 204; xml: 77
file content (32 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#! /bin/sh /usr/share/dpatch/dpatch-run
## 01_tmpfile.dpatch adopted from patch by Martin Schulze <joey@infodrom.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Bug 375617

@DPATCH@

diff -u -p -Nr --exclude CVS orig/spread-3.17.3/session.c spread-3.17.3/session.c
--- orig/spread-3.17.3/session.c	2004-03-05 01:32:46.000000000 +0100
+++ spread-3.17.3/session.c	2006-06-29 09:20:03.000000000 +0200
@@ -406,7 +406,7 @@ void	Sess_init()
 	    Alarm( EXIT, "Sess_init: UNIX sock error\n" );
 
 	unix_addr.sun_family	= AF_UNIX;
-	sprintf( name, "/tmp/%d",My.port );
+	sprintf( name, "/var/run/spread/%d",My.port );
 	strcpy( unix_addr.sun_path, name ); 
 	unlink( name );
 
diff -u -p -Nr --exclude CVS orig/spread-3.17.3/sp.c spread-3.17.3/sp.c
--- orig/spread-3.17.3/sp.c	2006-06-29 09:19:46.000000000 +0200
+++ spread-3.17.3/sp.c	2006-06-29 09:19:20.000000000 +0200
@@ -591,7 +591,7 @@ int	SP_connect_timeout( const char *spre
                 set_large_socket_buffers(s);
 
 		unix_addr.sun_family = AF_UNIX;
-		sprintf( unix_addr.sun_path, "/tmp/%d", port );
+		sprintf( unix_addr.sun_path, "/var/run/spread/%d", port );
 		ret = connect_nointr_timeout( s, (struct sockaddr *)&unix_addr, sizeof(unix_addr), &time_out);
 #endif	/* !ARCH_PC_WIN95 */
 	}