History log of /openbsd-current/gnu/usr.bin/cvs/src/server.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: OPENBSD_6_2_BASE
# 1.38 14-Apr-2017 jcs

once cvs's flow-control mechanism has kicked in, stop reading from
its local reader until memory usage goes back down below its
watermark.

during a checkout of a tree with big files (like www) from a fast
reader (disk) and a slow writer (net), the amount of data being
buffered can back up enough that cvs tries to allocate too many
buffers and hits its resource limit, causing death.

cvs's flow-control mechanism properly detects this early on, but the
message sent to the reader process to stop sending data takes too
long to process.

take more aggressive action and just stop reading from the reader
until the writer has ejected enough data that it can start re-using
its already-allocated buffers instead of allocating new ones.

ok deraadt


Revision tags: OPENBSD_5_9_BASE OPENBSD_6_0_BASE OPENBSD_6_1_BASE
# 1.37 30-Oct-2015 millert

Use crypt_checkpass() instead of strcmp(hash, crypt(password, hash)).
Fixes a crash in pserver mode when CVSROOT/passwd contains an old
DES password.


Revision tags: OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE
# 1.36 03-Dec-2013 millert

Kill usage of timeb.h for upcoming removal of libcompat. OK deraadt@


Revision tags: OPENBSD_5_4_BASE
# 1.35 20-Jun-2013 miod

Move the declaration of `disable_x_prog' outside of a #ifdef AUTH_SERVER_SUPPORT
block where it had been mistakenly put in the first place (in r1.28).


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.34 04-Mar-2012 fgsch

In preparation for getline and getdelim additions to libc, rename getline()
occurrences to get_line().
Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.


Revision tags: OPENBSD_4_9_BASE OPENBSD_5_0_BASE OPENBSD_5_1_BASE
# 1.33 15-Oct-2010 jsg

Switch the remaining users of libdes in src to libcrypto,
telnet portion partially from the latest heimdal.

ok mikeb@


Revision tags: OPENBSD_4_7_BASE OPENBSD_4_8_BASE
# 1.32 13-Dec-2009 jsg

fix leaks found by parfait.
ok deraadt


Revision tags: OPENBSD_3_6_BASE OPENBSD_3_7_BASE OPENBSD_3_8_BASE OPENBSD_3_9_BASE OPENBSD_4_0_BASE OPENBSD_4_1_BASE OPENBSD_4_2_BASE OPENBSD_4_3_BASE OPENBSD_4_4_BASE OPENBSD_4_5_BASE OPENBSD_4_6_BASE
# 1.31 09-Jun-2004 otto

Several potential security problems found and fixed by Stefan Esser &
Sebastian Krahmer.

ok millert@


# 1.30 19-May-2004 millert

Fix buffer overflow find by Stefan Esser, patch by Derek Robert Price.


Revision tags: OPENBSD_3_5_BASE
# 1.29 29-Dec-2003 deraadt

branches: 1.29.2;
re-entrancy hack that is currently needed for cvs to work correctly.
well, almost. someone should track that down please.


Revision tags: OPENBSD_3_3_BASE OPENBSD_3_4_BASE
# 1.28 23-Jan-2003 millert

branches: 1.28.4;
Add a "DisableXProg" option to CVSROOT/config that can be used to
disable support for Update-prog and Checkin-prog. This is a good
idea for anonymouse cvs servers or anyone who doesn't need this
feature. From Stefan Esser.


# 1.27 20-Jan-2003 millert

In dirswitch(), don't free dir_name until right before allocating
it again. This removes a potential double-free problem, whereby
this function could free dir_name and then immediately return due
to invalid directory syntax (without ever reassigning dir_name),
then re-enter and free dir_name again. Fix from Stefan Esser.


Revision tags: OPENBSD_3_0_BASE OPENBSD_3_1_BASE OPENBSD_3_2_BASE
# 1.26 29-Sep-2001 tholo

branches: 1.26.4; 1.26.6;
Merge remaining local changes, correct build issues


# 1.25 28-Sep-2001 tholo

Merge local changes; work in progress


Revision tags: OPENBSD_2_9_BASE
# 1.24 10-Feb-2001 tholo

Integrate local changes


Revision tags: OPENBSD_2_6_BASE OPENBSD_2_7_BASE OPENBSD_2_8_BASE
# 1.23 10-Sep-1999 tholo

Integrate local changes


Revision tags: OPENBSD_2_5_BASE
# 1.22 28-Feb-1999 tholo

Integrate local changes


Revision tags: OPENBSD_2_4_BASE
# 1.21 22-Aug-1998 tholo

Integrate local changes


# 1.20 13-Jul-1998 tholo

Integrate local changes


Revision tags: OPENBSD_2_3_BASE
# 1.19 12-Mar-1998 tholo

Integrate local changes


# 1.18 22-Feb-1998 tholo

Merge local changes to support a configuration file with Cyclic's scheme


# 1.17 22-Feb-1998 tholo

Integrate local changes


Revision tags: OPENBSD_2_2_BASE
# 1.16 04-Aug-1997 deraadt

save errno in sigchld handlers


# 1.15 28-Jun-1997 tholo

Integrate local changes


Revision tags: OPENBSD_2_1_BASE
# 1.14 21-Apr-1997 tholo

Integrate local changes


# 1.13 18-Mar-1997 tholo

Integrate local changes


# 1.12 21-Feb-1997 tholo

Integrate local changes


# 1.11 18-Oct-1996 tholo

Undo CVSroot change in main.c
Pass CVS root directory as an argument to parseopts()
Add prototype for parseopts()


# 1.10 18-Oct-1996 tholo

Integrate local changes


Revision tags: OPENBSD_2_0_BASE
# 1.9 30-May-1996 deraadt

who wrote this code? nonblocking pipe, select, and then not deal with a
read of zero? spin city. i think this deals properly with dead sockets.


# 1.8 24-May-1996 deraadt

server must parseopts() after getting Root


# 1.7 06-May-1996 tholo

Integrate local changes to CVS; remove files no longer part of the CVS
distribution


# 1.6 27-Apr-1996 tholo

Integrate local changes to CVS


# 1.5 30-Jan-1996 tholo

Integrate local changes


# 1.4 29-Jan-1996 deraadt

if CVSREADONLYFS, access to the history file is irrelevant


# 1.3 20-Dec-1995 deraadt

stall all three server:server pipes, and 2MB instead of 256K


# 1.2 19-Dec-1995 deraadt

allow at most 256K of data to be queued


# 1.1 19-Dec-1995 deraadt

branches: 1.1.1;
Initial revision