| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
value < 0. errno is only updated in this case. Change all (most?)
callers of syscalls to follow this better, and let's see if this strictness
helps us in the future.
|
| |
|
|
|
|
| |
ok mmcc
|
| |
|
|
|
|
| |
reallocarray()... so rename it.
|
|
|
|
| |
ok stsp
|
|
|
|
|
|
| |
pointers.
ok zinovik
|
|
|
|
| |
ok nicm@
|
|
|
|
|
|
| |
buf_grow() replaces macro BUF_GROW()
ok nicm@, ray@
|
|
|
|
|
|
| |
cvs/rcs.
OK xsa zinovik
|
|
|
|
|
|
| |
prefixes to reduce differences between cvs and rcs files.
"yes!" nicm
|
|
|
|
| |
from the stone ages.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
defined in CVSROOT/commitinfo and CVSROOT/loginfo and so on.
This enables the use of log_accum2 and all that other nice stuff we like.
This was mostly written by Jonathan Armani with help from tobias@ and myself.
ok tobias@
|
|
|
|
| |
ok joris
|
| |
|
|
|
|
| |
ok tobias@
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Don't check for NULL on buffer creation, because it calls fatal() when
something's wrong.
* All buffers are supposed to expand if there is no space left in them,
so zap flags as well.
* Remove code that is now dead.
OK joris@
> Inspired by a diff from Igor Zinovik about unchecked return value.
|
| |
|
|
|
|
| |
ok joris@
|
|
|
|
| |
Requested by ray@, OK joris@
|
|
|
|
| |
from Igor Zinovik
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
original pointer. Theo agrees, and so does the rest of the tree
(ssh, etc. all do this already).
Saves a bunch of variables and assignments.
OK niallo@
|
| |
|
|
|
|
|
|
| |
function, should not do any resource freeing.
OK joris@.
|
|
|
|
| |
things. now gcc -Wall and lint are more happy. ok joris@ xsa@
|
|
|
|
|
|
| |
most of the time and was never of much use.
OK niallo@.
|
|
|
|
|
|
| |
Bugginess pointed out and fix provided by Pierre Riteau.
OK joris@.
|
|
|
|
|
|
|
| |
always set the temporary file to mode 600, which is already done
by mkstemp().
OK joris@ and xsa@ over a month ago.
|
|
|
|
|
|
|
|
|
|
| |
except it takes a decriptor as argument instead of a path.
modified cvs_buf_load() to open the descriptor then pass
it to cvs_buf_load_fd().
change all the calls to cvs_buf_load() that have a descriptor
open for the path to cvs_buf_load_fd() to prevent races.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
no binary change; ok ray
|
|
|
|
|
|
|
| |
getting our buffer reset to 0 (empty) all the time.
i noticed this when i was trying to fix -z for keyword expansion. sigh.
okay niallo@
|
|
|
|
| |
OK xsa@
|
|
|
|
|
|
|
| |
just use xrealloc, since it handles the case of an unallocated
buffer anyway. (b->cb_buf should be NULL if the space is unallocated.)
``Tested & looks OK to'' niallo@.
|
|
|
|
|
|
|
|
| |
to the worklist of temporary files.
this way we definatly don't leave any files behind in /tmp.
tested & okay niallo@
|
|
|
|
|
|
|
| |
it like cvs_buf_write()
- print warning on fchmod() failure (suggested by ray)
ok joris@ ray@
|
| |
|
|
|
|
|
|
| |
use xcalloc and xstrdup where appropriate, and other stuff.
OK joris@
|
|
|
|
|
|
|
| |
- Sync xmalloc.? with ssh versions.
- Change all xrealloc() calls to new API.
``I really like this.'' niallo@
|
|
|
|
|
|
|
|
|
| |
changed to division, KNF, replace unreachable code with goto fail,
et cetera. Found by lint.
The free() -> xfree() as well.
OK niallo@
|
|
|
|
|
| |
- change cvs_buf_putc() return type to void
OK ray@.
|
|
|
|
|
|
|
| |
- remove superfluous error handling for cvs_buf_write_stmp()
- change cvs_buf_write_stmp() return type to void
ok joris@ xsa@
|
|
|
|
|
|
| |
Found by lint.
OK niallo@
|
|
|
|
| |
ok ray@
|