summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
AgeCommit message (Collapse)Author
2011-04-04previous commit introduced a crash: the removed strtol was being used toDamien Miller
skip past a value and it couldn't just be nuked
2011-04-01Move an isqrt() call outside a macro, from Michael W Bombardieri.Nicholas Marriott
ok ray
2011-03-27- remove unused variablesJasper Lievisse Adriaanse
from Michael W. Bombardieri ok chl@ nicm@
2011-03-27- garbage collect unused buf_fappend(), which was also removed from ocvs'sJasper Lievisse Adriaanse
buf.c some time ago. from Michael W. Bombardieri ok chl@ nicm@
2010-12-10- plug an fd leakJasper Lievisse Adriaanse
help/ok chl@ nicm@
2010-12-06add missing header needed by futimes()Charles Longeau
ok tobias@ xsa@ nicm@
2010-12-06add missing header needed by futimes()Charles Longeau
ok tobias@ nicm@
2010-12-06add missing header to properly use SIG* definitionsCharles Longeau
ok tobias@ nicm@
2010-12-03add missing header needed by futimes()Charles Longeau
ok stsp@
2010-12-01add missing header needed by mkstemp()Charles Longeau
ok stsp@
2010-10-28grammar tweak; from Michael W. BombardieriJason McIntyre
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-20Merge OpenCVS' rcs_deltatext_set into OpenRCS, fixing a memory leak.Tobias Stoeckmann
ok nicm zinovik
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-15No need to remove RCS_PARSE flag from rf_flags after successfully parsing.Tobias Stoeckmann
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-10-05Zapped unused function rcs_tag_resolve.Tobias Stoeckmann
ok xsa
2010-10-05rcs_state_check must check for more invalid characters than just space.Tobias Stoeckmann
ok nicm
2010-09-29Ensure that we always parse all deltas before expecting "desc" keyword.Tobias Stoeckmann
ok nicm, zinovik
2010-09-23Plug memory leak in rcs_getrev, from zinovik.Nicholas Marriott
ok me stsp
2010-09-11Fixed typo.Tobias Stoeckmann
ok ray, zinovik
2010-09-08Improve buf.c comments, from zinovik.Nicholas Marriott
ok stsp
2010-09-08Set rcs_suffixes to default value on initialization.Tobias Stoeckmann
ok ray zinovik
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
2010-09-02rcsnum_parse() allocates already an RCSNUM struct, so it's not needed toTobias Stoeckmann
copy it into a newly allocated one (which is even a memory leak). ok zinovik
2010-08-31styleTobias Stoeckmann
2010-08-31Removed ra_uid, which was supposed to save the uid of a delta's author.Tobias Stoeckmann
Is not used and not useful. ok xsa, zinovik
2010-07-31Checking for -1 as an overflow value is pretty absurd. ReturningRay Lai
the unix epoch is equally absurd. Just return Start for now. We may add overflow checks in the future. OK xsa nicm
2010-07-30Check date_parse return values.Ray Lai
OK xsa
2010-07-29Replace abort(), fatal(), and errx() with return -1, since date_parseRay Lai
returns -1 on error. OK nicm
2010-07-28Make BUFs autoextend by default. This was already done in OpenCVSRay Lai
a while ago. OK zinovik nicm
2010-07-23Plug mem leak.Ray Lai
OK nicm
2010-07-23Reduce variable/function name and whitespace differences betweenRay Lai
cvs/rcs. OK xsa zinovik
2010-07-23Sync with cvs:Ray Lai
Clean up struct tm handling. Instead of calling gmtime/localtime and making copies (among other weird dances), use reentrant versions. Not being able to tell the time is a fatal error, so die if that happens. Diff originally from nicm. OK nicm xsa
2010-07-23Rename a bunch of variables and functions, removing the cvs_/rcs_Ray Lai
prefixes to reduce differences between cvs and rcs files. "yes!" nicm
2010-07-22Fix the "no changes" detection when a file has RCS keywords.Todd C. Miller
This is consistent with GNU RCS. Also g/c an unused variable. OK xsa@ nicm@
2010-07-21Only use username if author is NULL. Fixes "ci -wusername" when runRay Lai
as root. OK nicm
2010-07-16Combine two diff_output lines into one, from diff.Ray Lai
OK stsp xsa nicm
2010-07-15Die immediately if pread fails. It's a fatal error so treat it asRay Lai
such. Besides, we weren't handling the NULL being returned. From diff. Minor nit by nicm. OK xsa stsp nicm
2010-07-15Use warnx instead of warn since errno wasn't set. From diff.Ray Lai
OK xsa stsp nicm
2010-07-15Sync with diff/diffreg.c r1.75:Ray Lai
Return -1 on error as advertised. Handle case when only one stream failed. OK xsa, stsp
2010-07-13Don't read before the beginning of the log message if it is zero-lengthNicholas Marriott
(possible when it comes from stdin). Tweaked version of a fix from Peter Hendrickson in PR 6423. ok deraadt
2010-07-09Make cvs and rcs consistent in what characters they'll accept inChristian Weisgerber
symbol/tag names: require the first character to be a letter and allow any printable character (except the RCS specials $,.:;@) afterwards. This matches GNU cvs. ok xsa@ zinovik@ stsp@
2010-04-15remove debugging information from the rcs binary; this saves 200K;Igor Sobrado
a similar change for OpenCVS would save 600K, but we choosed not applying this one yet, as OpenCVS is under development. ok xsa@
2010-04-07rcsdiff doesn't support all diff(1) options,lum
so don't give that impression. ok jmc@ deraadt@ xsa@
2010-04-06Amend manpage to reflect the actual behaviour of -r option.lum
ok jmc@ otto@
2009-10-28rcsid[] and sccsid[] and copyright[] are essentially unmaintained (andTheo de Raadt
unmaintainable). these days, people use source. these id's do not provide any benefit, and do hurt the small install media (the 33,000 line diff is essentially mechanical) ok with the idea millert, ok dms
2009-10-15ident(1) does not require arguments; while here, note that thisIgor Sobrado
program uses the standard input, not the standard output, when no filenames are provided. ok xsa@