summaryrefslogtreecommitdiff
path: root/usr.bin/rcs/rcsprog.c
AgeCommit message (Collapse)Author
2011-07-12argument to -t is optional.Igor Sobrado
ok jmc@
2010-12-06add missing header to properly use SIG* definitionsCharles Longeau
ok tobias@ nicm@
2010-09-08Set rcs_suffixes to default value on initialization.Tobias Stoeckmann
ok ray zinovik
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
2009-02-15bump version to match next releaseJoris Vink
2008-11-09typo fixed (overriden -> overridden)Tobias Stoeckmann
ok espie, jmc
2008-07-08bump version to 4.4Joris Vink
2008-05-10OpenRCS only handled a max of 128 arguments on command line + RCSINIT,Tobias Stoeckmann
which was a bogus limit. Spotted by naddy. horribly prodded by and ok joris
2008-04-26Duplicate envstr and free it on error instead of allocating forRay Lai
each argument and freeing each argument on error. OK joris, tobias
2008-04-24Prevent overflow of cmd_argv if RCS_INIT and command line argumentsTobias Stoeckmann
exceed buffer size (diff based on OpenCVS code). ok ray, xsa
2008-03-04fix segfault when trying to lock and unlock rcs files thatJoris Vink
contain no revisions. reported by Jean Raby. ok deraadt@
2008-02-24Bump version. Improvements and fixes since last release.Xavier Santolaria
OK joris@.
2007-06-30Sync revisions and time buffers size to be consistent with each others.Xavier Santolaria
Simplifies further size tweaks if needed. OK ray@.
2007-04-26`[-sstate[:rev]]' is not available in rcs(1)Igor Sobrado
ok by jmc@, niallo@, and xsa@
2007-02-27As done in OpenCVS, general includes cleanup sweep. OK otto@.Xavier Santolaria
2007-01-10you know what, now that openrcs is in fact working properly andJoris Vink
has been in the previous release - how about we give it a proper version instead of "OpenCVS RCS 3.6" okay xsa@, ray@
2006-12-27- no need to mention -e option twice in usage.Niall O'Higgins
pointed out by Igor Sobrado <igor at string1.ciencias.uniovi.es>
2006-11-13no magic, use defined RCS_LOCK_INVAL variable.Xavier Santolaria
2006-10-12- convert some warnx() to warn(), which fixes a few stupidly un-informative ↵Niall O'Higgins
error messages (found by tom@) - make rcs_choosefile() save wrt errno, input from ray@ ok joris@ xsa@
2006-08-16Improve rcs_buf_load() by setting errno appropriately on failure andRay Lai
never print errors or quit on error. Fix usages of rcs_buf_load() and rcs_set_description. Also plug an fd leak. OK xsa@
2006-05-29Plug more memory leaks.Ray Lai
OK joris@
2006-05-28Remove a lot of xstrdup() calls in getopt() loops, which are usuallyRay Lai
unnecessary. These xstrdup() calls don't call xfree() before anyway, so if a flag is given multiple times memory leaks would have resulted. OK joris@
2006-05-28Move -A<oldfile> handling into separate chunk of code. This alsoRay Lai
removes a memory leak if -A is given multiple times. OK joris@
2006-05-27Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(),Ray Lai
handling exceptions oddly. OK joris@
2006-05-19fix printf + add missing printf when unlocking file (-u).Xavier Santolaria
2006-05-15missing bits for a working merge(1). Built and enabled.Xavier Santolaria
OK joris@ ray@.
2006-05-11fix informative msg's wrt to -q and stderr. now matches gnu/usr.bin/rcs.Xavier Santolaria
2006-05-09Remove /* NOTREACHED */ comments, now that lint is smart aboutRay Lai
__dead. I never should have put them there. OK xsa@.
2006-05-01using *_FOREACH macros is really bad when we are actuallyJoris Vink
removing elements from the list inside the loop. this has been documented *clearly* in queue(3). okay niallo@
2006-04-29Check return values for all strlcpy, and strlcat calls.Ray Lai
OK xsa@ and probably others.
2006-04-29Clarify man pages to match -t behavior and pretty up usage strings.Ray Lai
OK xsa@ and jmc@.
2006-04-28remove -h; ok xsaJason McIntyre
2006-04-27move -M into compat land; ok xsaJason McIntyre
2006-04-26prevent file races by obtaining an fd for the RCS file andJoris Vink
do our operations on that, this is safe and guarantees we can operate on the file until we close(2) it. a fix is coming for the remaining races in our diff code. okay niallo@ and ray@
2006-04-26fork our code we shared between openrcs/cvs into the openrcs dir.Joris Vink
this was starting to become inhuman to maintain without ugly ugly hacks in the shared code, and it will be easier to make specific changes for openrcs without touching the soon-to-be-replaced opencvs code.
2006-04-25quote strings consistently.Xavier Santolaria
2006-04-25fatal() -> err()/errx() as we try to not depend on heavy cvs_log().Xavier Santolaria
OK joriski.
2006-04-24be consistent in error messages for wrongly specified keyword substitutionXavier Santolaria
mode for `-k'.
2006-04-24o Better match GNU behavior (a bare -t does NOT read from stdin,Ray Lai
unlike rcs). o Share code with rcs by moving rcs_set_description() to rcsutil.c. o Change description prompt from #define to const char *. OK xsa@
2006-04-21move shared functions into rcsutil.[ch]; this makes rcsprog.c cleaner;Xavier Santolaria
"the voices in my head say OK!" joris@.
2006-04-21match former rcs implementation warning message if no options areXavier Santolaria
specified when using rcs(1). OK ray@ joris@.
2006-04-21remove overkill cvs_log() and rather use warn()/warnx().Xavier Santolaria
OK ray@ and discussed with joris@.
2006-04-21switch -p handling to bitwise flags; OK ray@.Xavier Santolaria
2006-04-19switch -q handling to bitwise flags; OK ray@ niallo@.Xavier Santolaria
2006-04-18Combine code to prompt user for input into a shared function,Ray Lai
reducing some complex fats from ci.c. OK joris@
2006-04-18Remove -h flag from rcs_getopt loop, which is not in GNU.Ray Lai
OK xsa@
2006-04-17plug memory leak; OK ray@.Xavier Santolaria
2006-04-15dont stupidly duplicate code. make rlog use rcs_rev_select() and thusXavier Santolaria
nuke rlog_rev_select(). OK niallo@.
2006-04-14- don't append the extension if it's already there (PR 5076).Joris Vink
- show magic branches in rlog (thanks for that nicer hack niall). - correct output in rcsdiff, so we perfectly match gnu's all these bugs were found by sturm@ while he was using cvsweb (which uses the RCS tools). "it is in my view that you should put it in" niallo@
2006-04-14excessive addition to brackets is a mental disease. you will goTheo de Raadt
blind, too. seek help. no binary change, ok joris