summaryrefslogtreecommitdiffstats
path: root/usr.bin/cvs/log.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Remove xfree(), like already done for RCS. From Michael W Bombardieri,nicm2015-11-051-2/+3
| | | | ok mmcc
* Move some global variables/statics to locals, from Michael Wnicm2011-12-271-2/+2
| | | | Bombardieri.
* cmdp can be NULL while still in cvs_getopt(), so deal with thisjoris2008-06-121-3/+6
| | | | | | inside of cvs_vlog() since cvs_getopt() might be calling it. spotted by Jonathan Armani
* style ferry comes aroundjoris2008-06-111-29/+31
|
* Use a fixed string in case of vasprintf() error instead of relying ontobias2008-04-241-2/+2
| | | | | | | strerror(). Although our vasprintf() sets errno, we cannot rely on it on other systems. ok ray (who spotted this issue), xsa
* Simply the use of cmdp and cvs_command by zapping cvs_command and workingtobias2008-01-101-15/+7
| | | | | | | | solely with cmdp. This remedies some reliability issues with invalid commands supplied and also fixes a GNU cvs style incompatibility with release command. > Based on patch from Igor Zinovik
* Properly send out rcs info header with "E " in server mode (stderr intobias2007-09-071-2/+2
| | | | | | | local mode). Format style change also enables opencvs to be used with cvsweb (+ adjustment). OK joris@
* add support for cvs rlog.niallo2007-06-261-5/+6
| | | | | | from Mickey. ok joris@ ray@
* Simplify cvs_vlog() to avoid endless fatal() loop on some error case.xsa2007-05-101-41/+32
| | | | | Problem spotted and fix submitted by Tobias Stoeckmann. OK niallo@.
* general includes cleanup sweep. ok joris@ niallo@otto2007-02-221-3/+3
|
* snprintf() -> xsnprintf()xsa2007-01-311-6/+6
|
* first part of opencvs remote, fairly useable on existing treesjoris2006-07-071-5/+6
| | | | | | | | | | | | | | although i advise against using it on real development trees for now. only a few commands work right so far: - commit - diff - status - log - update (partially working) if you feel like testing remote and run into bugs feel free to contact me, and please include a full trace (-t).
* commit the new opencvs code, i have been hacking onjoris2006-05-271-174/+19
| | | | | | | | | | | | this for the past 2 weeks now and it should go in at the start of the hackathon so others can help out. this code is a lot safer, smarter, faster and best of all it is actually doing what it is suppose to do! basic checkout, update, status, diff and commit are working in local mode only. there is no support for any remote setups now.
* change cvs_log() and cvs_vlog() return type to void; OK niallo@.xsa2006-04-201-11/+6
|
* remove a metric buttload of excessive ()deraadt2006-04-141-3/+3
| | | | no binary change; ok ray
* Add error checking for vasprintf. Stylistic suggestions from xsa@.ray2006-04-131-24/+23
| | | | OK xsa@
* - remove unused function cvs_putchar()niallo2006-03-151-19/+1
| | | | "well then zap it" joris@
* - nuke remaining err(), errx() and warnx() instances.xsa2006-01-021-5/+2
| | | | | - make cvs_log_init() return type void. ok joris@.
* #include's cleanup; ok joris@ niallo@.xsa2006-01-021-9/+2
|
* switch to xmalloc stuff, me and xsa@ agreed on this a longjoris2005-12-101-2/+2
| | | | | | | | | time ago, but we were being held back by jfb. too bad for him. next step is to use fatal() through out the code for unrecoverable errors instead of trying to be all nice and fluffy and reach main() again. ok niallo@ and xsa@
* fix cvs_log() so it doesn't segfault when called beforejoris2005-10-091-4/+10
| | | | | | cvs_command is set. problem found by & discussed with Nuno Morgadinho thanks!
* Add preprocessor directives needed for usr.bin/rcs programs to compile.niallo2005-09-191-1/+17
| | | | ok joris@
* increase ebuf[] size in cvs_vlog() wrt strerror(3) return value;xsa2005-08-051-2/+2
| | | | ok jfb@.
* rather make LP_NOTICE send to stderr not LP_INFO, pointed out by jfb@.xsa2005-07-271-3/+3
| | | | ok jfb@.
* make LP_INFO send to stderr; ok joris@.xsa2005-07-271-2/+2
|
* KNF;xsa2005-07-251-5/+5
|
* remove trailing whitespacesjoris2005-07-071-2/+2
| | | | from deraadt@
* remove ancient and unused CVS define. it was a leftover fromjoris2005-06-071-11/+2
| | | | | | the daemon. ok xsa@
* * introduce cvs_putchar(), to output a single character to stdout.joris2005-06-051-2/+18
| | | | | | | | | if we are in server mode send 'M' when needed. * switch diff command to cvs_printf() and cvs_putchar() so it will output correctly in local and server mode. ok xsa@, jfb@
* make cvs_printf() a bit smarter, so it can be called without havingjoris2005-06-021-3/+9
| | | | | | to worry about the 'M' in server mode. OK jfb@
* - set LP_ABORT log level when action is abored by user instead of LP_ERRxsa2005-06-021-3/+8
| | | | | | | - missing \n in output of an unchanged log message warning - always use the command name in error messages instead of aliases ok jfb@.
* headers ordering (alphabetically) and cleanup, from mbalmer@ and myself;xsa2005-05-311-5/+4
|
* unbreakjfb2005-04-061-1/+3
|
* make cvs_printf() work as advertised when running as serverjfb2005-04-061-4/+29
|
* make LP_TRACE messages go through again, and assign them a level ofjfb2005-03-281-4/+6
| | | | | | LOG_DEBUG for the syslog facility ok xsa@
* fix a variety of things i found at coverity. ok joris@tedu2005-03-261-2/+2
|
* when a log message is generated by the server and is sent tojfb2005-02-221-2/+4
| | | | | standard error, instead redirect it to standard out with the appropriate `E' prefix to indicate an error response message
* properly initialize the syslog_data structurejfb2005-02-161-2/+2
|
* remove the LP_FILTER_TOGGLE operation, which is really pointless, andjfb2005-02-151-26/+18
| | | | use a bitmask to keep track of the log filters
* Permit the client to generate trace output when the -t option is givenjfb2004-12-151-5/+15
| | | | | by using the LP_TRACE level to cvs_log(). Traces are filtered by default.
* less whitespace, more pretty. ok jfbtedu2004-12-071-7/+2
|
* tighten vertical spacing for else; jfb okderaadt2004-12-061-3/+2
|
* make sure va_end() is always called in all possible pathspat2004-11-281-3/+1
| | | | ok jfb
* Add a new log level LP_ABORT, which modifies the behaviour of prefixjfb2004-08-051-9/+15
| | | | | | generation by outputting something similar to GNU CVS: cvs [<command> aborted]: message
* Adapt the logging so any messages generated by the server will bejfb2004-08-051-2/+23
| | | | | | prepended with a 'M' or 'E' command, depending on the log level, and follow the GNU behaviour of printing the command name after the program name in messages
* Comment out unused code and some minor cleanup. Add the prototype andjfb2004-07-271-4/+27
| | | | | | | skeleton for cvs_printf(), which will be used to output strings that do not need all of the handling that cvs_log() performs. This will be used among other things to prepend the `M' and `E' family of responses to output made by the `server' command.
* * initial import from the cvs-tools modulejfb2004-07-131-0/+254