summaryrefslogtreecommitdiff
path: root/usr.bin/cvs
AgeCommit message (Collapse)Author
2015-04-04Add support for commit ids to opencvs status.Stefan Sperling
Patch by joris via tech@; reminded by tedu
2015-04-04Fix modified timestamp in output of opencvs status.Stefan Sperling
Patch by joris via tech@; reminded by tedu
2015-02-05Include stdint.h, not limits.h to get SIZE_MAX. OK guenther@Todd C. Miller
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
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)
2014-12-01An internal function called xrealloc() is actually a fail-hardTheo de Raadt
reallocarray()... so rename it.
2014-11-22not compiled before commitTheo de Raadt
2014-11-22Fixed uninitialized pointer (and other struct entries while at it)Tobias Stoeckmann
which is referenced while parsing invalid RCS files. Spotted by jsg. ok deraadt
2014-11-16Convert the logic in rcsparse_warnx(). Instead of creating aAlexander Bluhm
temporary format string, create a temporary message. If there is not enough memory to log the error, just log this second error. The double error path gets never tested, so it should be simple. Make it work like the other places. OK doug@
2014-01-08unsigned char for ctype. ok deraadtOkan Demirmen
2013-12-13Make it compile again. And there is a time_t fix as a bonus!Vadim Zhukov
Input and okay jca@.
2013-12-03do not need timeb.hTheo de Raadt
2013-08-14more Bx;Jason McIntyre
From: Jan Stary
2013-06-29do not use Sx for sections outwith the page;Jason McIntyre
man4 still to go...
2013-06-03properly handle commitid tokens found in rcs filesjoshua stein
ok deraadt
2013-04-19Constrain the 2038 check to only when sizeof(time_t) == sizeof(int).Theo de Raadt
Adding more powerful checking is too difficult. We'll fix this problem by moving to 64-bit time_t.. and once we do, we don't want this code to falsely trigger. ok millert
2012-07-02simplify rcsnum parsing by using a fixed array without all the reallocTed Unangst
ok stsp
2012-03-04In preparation for getline and getdelim additions to libc, rename getline()Federico G. Schwindt
occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech.
2012-02-04Sync rcsparse between OpenCVS/OpenRCS. Spaces, no binary change.Tobias Stoeckmann
2011-12-27Move some global variables/statics to locals, from Michael WNicholas Marriott
Bombardieri.
2011-09-20Lose unused variable cvs_msg, from Michael W Bombardieri.Nicholas Marriott
2011-06-03add missing header, needed by the use of struct tmCharles Longeau
ok nicm@ xsa@
2011-05-20Remove a silly XXX for a bit of code that is only used once - no valueNicholas Marriott
in making it a function. From Michael W Bombardieri.
2011-05-04Fix a typo in a comment, from Michael W Bombardieri.Nicholas Marriott
2011-05-02Fix bad return value check for rcsnum_cmp()Charles Longeau
ok nickm@ xsa@
2011-04-20Remove some includes and defines that are no longer needed, from MichaelNicholas Marriott
W Bombardieri.
2011-04-20Trivial code simplifying, from Michael W Bombardieri.Nicholas Marriott
2011-04-20Use -u when diff context is 3, from Michael W Bombardieri, tweaked byNicholas Marriott
millert.
2011-04-01Move an isqrt() call outside a macro, from Michael W Bombardieri.Nicholas Marriott
ok ray
2011-03-27Get rid of some warnings, from Michael W Bombardieri.Nicholas Marriott
2011-03-26- note that -T overrides TMPDIR, and a few other tweaks;Jason McIntyre
from Michael W. Bombardieri -T stuff verified by nicm
2010-11-11Nuke dead assignments and a dead function, from Michael W BombardieriNicholas Marriott
using lint.
2010-10-31init was passing a writable file descriptor into rcs_open which was thenNicholas Marriott
failing to fdopen() it as readable. It doesn't need to pass in the fd at all, so just change it to pass -1 which makes cvs init work again. In fact, the fd should never need to be writable - it is only used for reading. RCS_WRITE triggers a rewrite on the file on rcs_close() but this is done by using a temporary and rename(2) (RCS_WRITE is a poor name for the flag). So while here, add a couple of comments to hopefully make it a little clearer. There is some confusion about how this is used in other places but checking those is a separate issue. with and ok tobias
2010-10-29Nuke some unused variables and remove an unnecessary call to dirname().Nicholas Marriott
From Michael W Bombardieri via ray@.
2010-10-28Change basep parameter of getdirentries() to be off_t *, not long *Todd C. Miller
so it works correctly with large offsets (and matches other systems). This requires adding a new getdirentries syscall, with the old one renamed to ogetdirentries. All in-tree consumers of getdirentries() have been updated. Bump libc and libpthread major numbers. OK and with deraadt@
2010-10-28Fix memory leak.Tobias Stoeckmann
ok stsp, zinovik
2010-10-27Merge -k and expand @@ parsing code between OpenCVS and OpenRCS, resultingTobias Stoeckmann
in a performance gain in OpenCVS in some "cvs update" scenarios. ok zinovik
2010-10-23Use CVSROOT for "cvs import" - just ignore CVS/Root files. PR 6497 fromNicholas Marriott
Michael W Bombardieri. ok tobias stsp
2010-10-20Remove the need for rp_file in parser structure, instead keep only oneTobias Stoeckmann
FILE pointer in RCSFILE. This fixes some ugliness in closing an fdopen()ed FILE and its underlying file descriptor. Notified by Joerg Sonnenberger <joerg at britannica dot bec to de> discussed with and ok nicm
2010-10-20Prevent a NULL pointer dereference if rcsparse_deltatexts is called withTobias Stoeckmann
a revision not specified as delta in an RCS file. Spotted by and ok zinovik
2010-10-15Fixed default branch handling and added support for branches in branches.Tobias Stoeckmann
ok nicm
2010-10-15Replaced RCS parser code with new rcsparse.{c,h}:Tobias Stoeckmann
- be very strict about things we parse - print more information about errors if they occur - do not fatal() directly in parser, give caller a chance to react - fix an rcs design issue when it comes to login names tested by many on tech@ ok xsa
2010-09-29Support for update -C, from zinovik.Nicholas Marriott
ok tobias xsa
2010-09-29Ensure that we always parse all deltas before expecting "desc" keyword.Tobias Stoeckmann
ok nicm, zinovik
2010-09-27Have cvs_file_walkdir() ignore CVS/ directories when walking a repository tree.Joshua Elsasser
This fixes r* commands such as rlog against a repository which has somehow ended up containing CVS/Entries.Static files. ok nicm@ guenther@
2010-09-23Add cvs_mkdir() for recursive directory creation on import, based on aNicholas Marriott
diff from Michael W Bombardieri in PR 6398. tested by & ok jasper
2010-09-19more wacky macro fixing;Jason McIntyre
2010-09-11Fixed typo.Tobias Stoeckmann
ok ray, zinovik
2010-09-08Improve buf.c comments, from zinovik.Nicholas Marriott
ok stsp
2010-09-08Use SIZE_LEFT macro to determine left size instead of calculating withTobias Stoeckmann
pointers. ok zinovik
2010-09-03add an EXIT STATUS section for /usr/bin;Jason McIntyre