summaryrefslogtreecommitdiff
path: root/usr.bin/cvs/cvs.c
AgeCommit message (Collapse)Author
2007-09-10Fixed segmentation fault that occured during .cvsrc parsing if an invalidTobias Stoeckmann
cvs command has been specified. Spotted by Mathias De Belder <mathias at woei dot be> who also supplied a patch, although I took his second suggestion. OK joris@
2007-09-07Do not fatal if getpwuid() fails, instead ignore user configuration files.Tobias Stoeckmann
OK joris@
2007-09-02Stick at GNU cvs behaviour with Root directive handling: it does not needTobias Stoeckmann
to be sent first, can occure multiple times (although this is ignored) but should be supplied before Directory. OK joris@
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-05-27Add bounds check for cvs command arguments. Initial diff by TobiasRay Lai
Stoeckmann, rearranged to "if (num_items >= BUFSIZ)" format for readability. I would have liked to allow our cvs client to accept as many arguments as the system would allow, but the argument parsing code is surprising hairy. OK niallo@.
2007-05-27Revert, we dealt with the -x flag in the past. jmc suddenlyRay Lai
remembered we had created a separate section for compatibility flags. Oh well, two free commits. OK jmc@
2007-05-27Mention -x flag (for compatibility only). From Tobias Stoeckmann.Ray Lai
Input and OK jmc@
2007-05-27Call fatal() if extra arguments are given to "opencvs server". FromRay Lai
Tobias Stoeckmann. OK niallo@
2007-05-26cvs_server_path is more appropriate to check than cvs_server_active.Ray Lai
From Tobias Stoeckmann. OK niallo@
2007-05-22Note that the global -x option is kept for compatibility (for now) and hasXavier Santolaria
no effect.
2007-05-09- we do not have -H, zap it.Xavier Santolaria
- add missing `x' flag in getopt() and sort flags. - sync usage(). Based on initial diff from Tobias Stoeckmann.
2007-04-30make usage() __dead; from Tobias Stoeckmann.Xavier Santolaria
2007-04-30missing header; from Tobias Stoeckmann.Xavier Santolaria
2007-04-24changes "Usage" to "usage"; sorts options list in cvs history;Igor Sobrado
the argument to -z is tz, not timezone; argument names to flags should use lowercase letters; cvs's usage() output should fit on a 80-column display ok by jmc@, niallo@ and xsa@
2007-02-24fix comment; from jared r r spiegelOtto Moerbeek
2007-02-22general includes cleanup sweep. ok joris@ niallo@Otto Moerbeek
2007-02-17cvs_path_cat() removal since we can now easily handle thatXavier Santolaria
functionality w/ xsnprintf(); Initial diff started by thib@. OK thib@ joris@.
2007-02-09strtol(3) -> strtonum(3)Joris Vink
2007-02-06sort options;Jason McIntyre
2007-01-11in a remote setup:Joris Vink
do not connect to the remote server until we are sure all the options passed to the commands are valid. noticed by xsa@
2006-12-11global option -n implies -lXavier Santolaria
2006-12-11Permit checkout from a read-only repository using the -R global optionXavier Santolaria
or using the CVSREADONLYFS environment variable. Request/test/ok todd@. Man page bits courtesy of jmc@.
2006-11-28snprintf() -> cvs_path_cat()Xavier Santolaria
2006-11-14Add support for the "Set" request.Xavier Santolaria
2006-11-14Simplify in cvs_read_rcfile() by using cvs_path_cat();Xavier Santolaria
2006-07-09handle SIGPIPE correctly.Joris Vink
2006-07-07first part of opencvs remote, fairly useable on existing treesJoris Vink
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).
2006-06-28use quiet mode (-q) by default and add a flag -V for the old "verbose"Reyk Floeter
mode. if you really need to know all the details (the old GNU'ish behaviour), use -V or even -t for tracing. ok joris@
2006-06-13be more accurate in describing what happenedJoris Vink
when we cannot see the repository the user wants to work with.
2006-06-12bring back a working version of the `cvs init' command. OK joris@.Xavier Santolaria
2006-06-02various spelling fixesDavid Krause
2006-05-30nuke cvs_repo_base variableJoris Vink
2006-05-27lets be nice and abort cvs when we find out there isJoris Vink
no CVSROOT directory where there is suppose to be one.
2006-05-27basic support for CVSROOT/config - only supporting the 'tag' andJoris Vink
'umask' keyword right now.
2006-05-27commit the new opencvs code, i have been hacking onJoris Vink
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.
2006-04-14remove a metric buttload of excessive ()Theo de Raadt
no binary change; ok ray
2006-04-05Use variable names for sizeof, remove casts in front of xmalloc,Ray Lai
use xcalloc and xstrdup where appropriate, and other stuff. OK joris@
2006-03-15bogus idiomTheo de Raadt
2006-01-29spread some fatal() here too;Xavier Santolaria
2006-01-26strings cleanup; OK niallo@.Xavier Santolaria
2006-01-23print complete command name in usage, not aliases.Xavier Santolaria
2006-01-02- nuke remaining err(), errx() and warnx() instances.Xavier Santolaria
- make cvs_log_init() return type void. ok joris@.
2006-01-02#include's cleanup; ok joris@ niallo@.Xavier Santolaria
2005-12-19use fatal() if getpwuid() fails; OK joris@.Xavier Santolaria
2005-12-10switch to xmalloc stuff, me and xsa@ agreed on this a longJoris Vink
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@
2005-12-03fix date handling in opencvs, this was broken since the very start.Joris Vink
now, when you checkout a tree with gnu cvs, opencvs no longer sees all the files as modified, and visa versa. this actually makes gnu cvs and opencvs dance together in working copies.
2005-11-12- remove strtab stuff. serves no useful purpose.Niall O'Higgins
diff is from joris@, committing on his behalf because his net connection is very dodgy right now.
2005-10-07knf and spacing, ok joris@Reyk Floeter
2005-08-10fgets() expects the 2nd arg to be an int. OK jfb@ joris@.Xavier Santolaria
2005-08-10add global -w option and document it; ok jmc jorisXavier Santolaria