[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
cvs update -p sends Global_option -n.
From: |
Tanaka Akira |
Subject: |
cvs update -p sends Global_option -n. |
Date: |
22 Nov 2000 16:59:03 +0900 |
User-agent: |
T-gnus/6.14.5 (based on Gnus v5.8.7) (revision 03) REMI/1.14.3 (Matsudai) Deisui/1.14.0 (Kikuhime) APEL/10.2 Emacs/20.7 (i386-unknown-openbsd2.7) MULE/4.0 (HANANOEN) |
This patch prevent to send Global_option -n with `cvs update -p' in
client mode. Since Global_option affects succeeding CVS operations,
it shouldn't be used. Anyway, noexec variable is set in forked server
process and it works well.
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':
--
Tanaka Akira
- reset Global_option, Tanaka Akira, 2000/11/14
- cvs update -p sends Global_option -n.,
Tanaka Akira <=