History log of /openbsd/usr.bin/cvs/util.c (Results 1 – 25 of 162)
Revision Date Author Comments
# 3aaa63eb 28-Jun-2019 deraadt <deraadt@openbsd.org>

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if

When system calls indicate an error they return -1, not some arbitrary
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.

show more ...


# 0fcddf58 28-Aug-2017 otto <otto@openbsd.org>

fix const related warnings; ok millert@


# 4dcde513 01-Jun-2017 joris <joris@openbsd.org>

Stop looking at current_cvsroot->cr_method to figure out if we're remote or not.

Instead use cvsroot_is_local() and cvsroot_is_remote().


# 53ce2177 13-Oct-2016 fcambus <fcambus@openbsd.org>

rcsnum_free() -> free() cleanups. From Michael W. Bombardieri.

OK millert@


# 397ddb8a 05-Nov-2015 nicm <nicm@openbsd.org>

Remove xfree(), like already done for RCS. From Michael W Bombardieri,
ok mmcc


# b9fc9a72 16-Jan-2015 deraadt <deraadt@openbsd.org>

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_N

Replace <sys/param.h> with <limits.h> and other less dirty headers where
possible. Annotate <sys/param.h> lines with their current reasons. Switch
to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change
MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where
sensible to avoid pulling in the pollution. These are the files confirmed
through binary verification.
ok guenther, millert, doug (helped with the verification protocol)

show more ...


# caa2ffb0 01-Dec-2014 deraadt <deraadt@openbsd.org>

An internal function called xrealloc() is actually a fail-hard
reallocarray()... so rename it.


# 96509c29 20-Apr-2011 nicm <nicm@openbsd.org>

Remove some includes and defines that are no longer needed, from Michael
W Bombardieri.


# 4fc7a9b5 11-Nov-2010 nicm <nicm@openbsd.org>

Nuke dead assignments and a dead function, from Michael W Bombardieri
using lint.


# 0f651f47 23-Sep-2010 nicm <nicm@openbsd.org>

Add cvs_mkdir() for recursive directory creation on import, based on a
diff from Michael W Bombardieri in PR 6398.

tested by & ok jasper


# 7bb3ddb0 23-Jul-2010 ray <ray@openbsd.org>

Reduce variable/function name and whitespace differences between
cvs/rcs.

OK xsa zinovik


# 889040c6 24-Mar-2009 joris <joris@openbsd.org>

use size_t for size, since atomicio() both accepts and returns it


# a666f739 23-Feb-2009 joris <joris@openbsd.org>

unused var


# a0fe5faa 23-Feb-2009 joris <joris@openbsd.org>

we no longer push out Set-sticky to the client when writing
our Tag file on the server or in cvs_mkpath(), this caused
problems for the "fast checkout" mechanism when a tag was supplied.

instead, wr

we no longer push out Set-sticky to the client when writing
our Tag file on the server or in cvs_mkpath(), this caused
problems for the "fast checkout" mechanism when a tag was supplied.

instead, write out any directory sticky tag when we are checking
out a file in that directory, this way we can use our "fast checkout"
mechanism (no /tmp required) even for -r and -d without breaking
working copies because they were missing CVS/Tag files.

"looks good" tobias@

show more ...


# 5b2d50e5 21-Feb-2009 joris <joris@openbsd.org>

in cvs_mkpath() always look for an existing CVS/Repository file
unless we're running checkout or export.
otherwise we'll end up accidently overwriting it in certain cases
on the client side of things.


# 8fbb14c0 21-Jun-2008 joris <joris@openbsd.org>

add a hash table mechanism based upon hcreate(3) but one that allows
us to maintain multiple hash tables concurrently.

immediatly start using it to keep track of what directories
we have already cre

add a hash table mechanism based upon hcreate(3) but one that allows
us to maintain multiple hash tables concurrently.

immediatly start using it to keep track of what directories
we have already created and what CVS dirs we already created so
we do not recreate them when we do not need to.

we will be switching more internals to use this soon.
rejoice for cheaper lookups.

ok tobias@

show more ...


# 7c1a09a6 14-Jun-2008 joris <joris@openbsd.org>

don't always re-open the same CVS/Entries file, instead keep the
last opened CVS/Entries around to operate on and close it whenever
we switch directory. gives us a small performance boost, obviously.

don't always re-open the same CVS/Entries file, instead keep the
last opened CVS/Entries around to operate on and close it whenever
we switch directory. gives us a small performance boost, obviously.

while doing this, switch the way we write revisions to disk by
using fwrite(3) so stuff can get written to disk in chunks
instead of writing everything line by line, another win.

with help from otto@
ok tobias@

show more ...


# 1b5598b0 12-Jun-2008 joris <joris@openbsd.org>

completely kill the need for TMP_DIR when running checkout,
which gives us better performance among other things.

this is however disabled in a few cases:
1) whenever you run checkout over an existi

completely kill the need for TMP_DIR when running checkout,
which gives us better performance among other things.

this is however disabled in a few cases:
1) whenever you run checkout over an existing tree (which acts as update)
2) whenever you specify -d or a module alias

we're planning on enabling this behaviour for case 2 in the future.

anoncvs sysadmins now love us even more.

ok tobias@

show more ...


# b034d592 10-Jun-2008 joris <joris@openbsd.org>

New trigger framework that allows us to run the required scripts
defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.

This enables the use of log_accum2 and all that other nice stuff we like

New trigger framework that allows us to run the required scripts
defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.

This enables the use of log_accum2 and all that other nice stuff we like.

This was mostly written by Jonathan Armani with help from tobias@ and myself.

ok tobias@

show more ...


# d049fbc0 09-Mar-2008 joris <joris@openbsd.org>

be sure to build CVS/Root when updating and building directories (-d)


# 7f949bd6 09-Mar-2008 joris <joris@openbsd.org>

be sure to create CVS/Root if we added a new directory to the repository.


# 172698f8 08-Mar-2008 tobias <tobias@openbsd.org>

CVS/Entries file must be created in cvs_mkadmin, because they have to be
available in empty directories too (containing only "D" then).

ok joris


# f4a2933b 01-Mar-2008 joris <joris@openbsd.org>

do not overwrite CVS/Root in an existing tree whenever somebody
specified a CVSROOT using alternate ways (-d or CVSROOT environ variable)


# d2d7e959 10-Feb-2008 joris <joris@openbsd.org>

use cvs_validate_directory() in cvs_get_repository_path() as well,
since we want to make sure we have valid CVS/Repository content

ok tobias@


# 38be6170 10-Feb-2008 joris <joris@openbsd.org>

introduce cvs_validate_directory(), which is used to check
directory path to make sure they do not fall outside the CVSROOT
or the working copy directory in a remote setup


1234567