Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Replace <sys/param.h> with <limits.h> and other less dirty headers where | 2015-01-16 | 35 | -213/+224 | |
| | | | | | | | | | 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) | ||||
* | An internal function called xrealloc() is actually a fail-hard | 2014-12-01 | 10 | -37/+34 | |
| | | | | reallocarray()... so rename it. | ||||
* | not compiled before commit | 2014-11-22 | 1 | -2/+2 | |
| | |||||
* | Fixed uninitialized pointer (and other struct entries while at it) | 2014-11-22 | 1 | -2/+2 | |
| | | | | | | | | which is referenced while parsing invalid RCS files. Spotted by jsg. ok deraadt | ||||
* | Convert the logic in rcsparse_warnx(). Instead of creating a | 2014-11-16 | 1 | -8/+9 | |
| | | | | | | | | 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@ | ||||
* | unsigned char for ctype. ok deraadt | 2014-01-08 | 6 | -20/+21 | |
| | |||||
* | Make it compile again. And there is a time_t fix as a bonus! | 2013-12-13 | 3 | -11/+11 | |
| | | | | Input and okay jca@. | ||||
* | do not need timeb.h | 2013-12-03 | 1 | -3/+1 | |
| | |||||
* | more Bx; | 2013-08-14 | 1 | -3/+5 | |
| | | | | From: Jan Stary | ||||
* | do not use Sx for sections outwith the page; | 2013-06-29 | 1 | -5/+3 | |
| | | | | man4 still to go... | ||||
* | properly handle commitid tokens found in rcs files | 2013-06-03 | 3 | -7/+37 | |
| | | | | ok deraadt | ||||
* | Constrain the 2038 check to only when sizeof(time_t) == sizeof(int). | 2013-04-19 | 1 | -4/+5 | |
| | | | | | | | 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 | ||||
* | simplify rcsnum parsing by using a fixed array without all the realloc | 2012-07-02 | 3 | -26/+11 | |
| | | | | ok stsp | ||||
* | In preparation for getline and getdelim additions to libc, rename getline() | 2012-03-04 | 1 | -5/+5 | |
| | | | | | occurrences to get_line(). Based on a diff from Jan Klemkow <j-dot-klemkow-at-wemelug-dot-de> to tech. | ||||
* | Sync rcsparse between OpenCVS/OpenRCS. Spaces, no binary change. | 2012-02-04 | 1 | -4/+4 | |
| | |||||
* | Move some global variables/statics to locals, from Michael W | 2011-12-27 | 6 | -14/+14 | |
| | | | | Bombardieri. | ||||
* | Lose unused variable cvs_msg, from Michael W Bombardieri. | 2011-09-20 | 2 | -4/+2 | |
| | |||||
* | add missing header, needed by the use of struct tm | 2011-06-03 | 1 | -1/+2 | |
| | | | | ok nicm@ xsa@ | ||||
* | Remove a silly XXX for a bit of code that is only used once - no value | 2011-05-20 | 1 | -2/+1 | |
| | | | | in making it a function. From Michael W Bombardieri. | ||||
* | Fix a typo in a comment, from Michael W Bombardieri. | 2011-05-04 | 1 | -2/+2 | |
| | |||||
* | Fix bad return value check for rcsnum_cmp() | 2011-05-02 | 1 | -2/+2 | |
| | | | | ok nickm@ xsa@ | ||||
* | Remove some includes and defines that are no longer needed, from Michael | 2011-04-20 | 2 | -5/+2 | |
| | | | | W Bombardieri. | ||||
* | Trivial code simplifying, from Michael W Bombardieri. | 2011-04-20 | 1 | -15/+9 | |
| | |||||
* | Use -u when diff context is 3, from Michael W Bombardieri, tweaked by | 2011-04-20 | 1 | -2/+2 | |
| | | | | millert. | ||||
* | Move an isqrt() call outside a macro, from Michael W Bombardieri. | 2011-04-01 | 1 | -7/+10 | |
| | | | | ok ray | ||||
* | Get rid of some warnings, from Michael W Bombardieri. | 2011-03-27 | 1 | -1/+9 | |
| | |||||
* | - note that -T overrides TMPDIR, and a few other tweaks; | 2011-03-26 | 1 | -5/+8 | |
| | | | | | | from Michael W. Bombardieri -T stuff verified by nicm | ||||
* | Nuke dead assignments and a dead function, from Michael W Bombardieri | 2010-11-11 | 4 | -32/+7 | |
| | | | | using lint. | ||||
* | init was passing a writable file descriptor into rcs_open which was then | 2010-10-31 | 3 | -5/+9 | |
| | | | | | | | | | | | | | | 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 | ||||
* | Nuke some unused variables and remove an unnecessary call to dirname(). | 2010-10-29 | 3 | -9/+6 | |
| | | | | From Michael W Bombardieri via ray@. | ||||
* | Change basep parameter of getdirentries() to be off_t *, not long * | 2010-10-28 | 2 | -4/+4 | |
| | | | | | | | | 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@ | ||||
* | Fix memory leak. | 2010-10-28 | 1 | -1/+2 | |
| | | | | ok stsp, zinovik | ||||
* | Merge -k and expand @@ parsing code between OpenCVS and OpenRCS, resulting | 2010-10-27 | 2 | -19/+11 | |
| | | | | | | in a performance gain in OpenCVS in some "cvs update" scenarios. ok zinovik | ||||
* | Use CVSROOT for "cvs import" - just ignore CVS/Root files. PR 6497 from | 2010-10-23 | 1 | -3/+6 | |
| | | | | | | Michael W Bombardieri. ok tobias stsp | ||||
* | Remove the need for rp_file in parser structure, instead keep only one | 2010-10-20 | 3 | -21/+23 | |
| | | | | | | | | | 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 | ||||
* | Prevent a NULL pointer dereference if rcsparse_deltatexts is called with | 2010-10-20 | 1 | -9/+7 | |
| | | | | | | a revision not specified as delta in an RCS file. Spotted by and ok zinovik | ||||
* | Fixed default branch handling and added support for branches in branches. | 2010-10-15 | 1 | -3/+9 | |
| | | | | ok nicm | ||||
* | Replaced RCS parser code with new rcsparse.{c,h}: | 2010-10-15 | 4 | -997/+1307 | |
| | | | | | | | | | | | - 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 | ||||
* | Support for update -C, from zinovik. | 2010-09-29 | 3 | -9/+57 | |
| | | | | ok tobias xsa | ||||
* | Ensure that we always parse all deltas before expecting "desc" keyword. | 2010-09-29 | 1 | -5/+5 | |
| | | | | ok nicm, zinovik | ||||
* | Have cvs_file_walkdir() ignore CVS/ directories when walking a repository tree. | 2010-09-27 | 1 | -2/+3 | |
| | | | | | | | This fixes r* commands such as rlog against a repository which has somehow ended up containing CVS/Entries.Static files. ok nicm@ guenther@ | ||||
* | Add cvs_mkdir() for recursive directory creation on import, based on a | 2010-09-23 | 3 | -7/+47 | |
| | | | | | | diff from Michael W Bombardieri in PR 6398. tested by & ok jasper | ||||
* | more wacky macro fixing; | 2010-09-19 | 1 | -3/+3 | |
| | |||||
* | Fixed typo. | 2010-09-11 | 1 | -2/+2 | |
| | | | | ok ray, zinovik | ||||
* | Improve buf.c comments, from zinovik. | 2010-09-08 | 1 | -3/+44 | |
| | | | | ok stsp | ||||
* | Use SIZE_LEFT macro to determine left size instead of calculating with | 2010-09-08 | 1 | -5/+3 | |
| | | | | | | pointers. ok zinovik | ||||
* | add an EXIT STATUS section for /usr/bin; | 2010-09-03 | 1 | -4/+4 | |
| | |||||
* | Rename RCSNUM's fd to rf_fd, complies to other variable names and | 2010-09-03 | 2 | -7/+7 | |
| | | | | | | OpenRCS. ok xsa, zinovik | ||||
* | rcsnum_parse() allocates already an RCSNUM struct, so it's not needed to | 2010-09-02 | 1 | -3/+2 | |
| | | | | | | copy it into a newly allocated one (which is even a memory leak). ok zinovik | ||||
* | Removed ra_uid, which was supposed to save the uid of a delta's author. | 2010-08-31 | 1 | -2/+1 | |
| | | | | | | Is not used and not useful. ok xsa, zinovik |