File: cvs.patch

package info (click to toggle)
cvsconnect 0.1.cvs20001202-1
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, squeeze
  • size: 68 kB
  • ctags: 34
  • sloc: perl: 230; sh: 105
file content (29 lines) | stat: -rw-r--r-- 900 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
This patch is required to prevent sending Global_option -n with
`cvs update -p' in client mode.  This is required to make CVSsuck
working with only *one* connection.

However, CVSsuck can work with *two* connection without this patch.

Index: src/update.c
===================================================================
RCS file: /home/akr/.cvsroot/ccvs/src/update.c,v
retrieving revision 1.182
diff -u -r1.182 update.c
--- src/update.c	2000/10/24 15:07:47	1.182
+++ src/update.c	2000/11/16 11:45:53
@@ -202,6 +202,15 @@
 		break;
 	    case 'p':
 		pipeout = 1;
+#ifdef CLIENT_SUPPORT
+		/*
+		  noexec will be set in forked process at server side.
+		  If noexec is set in client side, it will be sent as
+		  Global_option -n and it set noexec in non-forked server
+		  process.
+		*/
+		if (!client_active) 
+#endif
 		noexec = 1;		/* so no locks will be created */
 		break;
 	    case 'j':