summaryrefslogtreecommitdiff
path: root/usr.bin/rcs
AgeCommit message (Collapse)Author
2006-05-29Plug more memory leaks.Ray Lai
OK joris@
2006-05-29- sizeof(struct tm) -> sizeof(*tb)Niall O'Higgins
little tidbit from the flight to c2k6 ok joris@
2006-05-29- zap unrequired casts for rcs_buf_release().Niall O'Higgins
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-28Don't fill in the rd_locker if we are creating a new RCS file.Ray Lai
OK joris@
2006-05-27Rename RCSFILE.fd to RCSFILE.rf_fd, plus minor spacing nits. NoRay Lai
binary change. OK xsa@
2006-05-27Remove rcs_statfile(). It was just a wrapper for rcs_choosefile(),Ray Lai
handling exceptions oddly. OK joris@
2006-05-27rcs_choosefile() no longer returns char *, it returns a fileRay Lai
descriptor; fix comment. Improve spacing. OK joris@
2006-05-19fix printf + add missing printf when unlocking file (-u).Xavier Santolaria
2006-05-17yyerror() little cleanupXavier Santolaria
2006-05-17fix printf'sXavier Santolaria
2006-05-15.Xr merge(1)Xavier Santolaria
2006-05-15oopps, missing \ at EOL.Xavier Santolaria
2006-05-15missing bits for a working merge(1). Built and enabled.Xavier Santolaria
OK joris@ ray@.
2006-05-14warnx(); return(); --> errx();Xavier Santolaria
2006-05-11fix informative msg's wrt to -q and stderr. now matches gnu/usr.bin/rcs.Xavier Santolaria
2006-05-11Use fstat instead of stat, simplifie switch statement into ifRay Lai
statement, and remove __inline. OK xsa@
2006-05-11fix informative msg's wrt to -q and stderr. now matches gnu/usr.bin/rcs.Xavier Santolaria
2006-05-11first round of rcs_write() cleanup; prodded by joris@; input/OK ray@.Xavier Santolaria
2006-05-10starting bits for merge(1) replacement. Not built/linked yet.Xavier Santolaria
man page reviewed by jmc@.
2006-05-10treat first file passed as argument only; issue a warning for others.Xavier Santolaria
matches gnu/usr.bin/rcs. OK joris@.
2006-05-10Remove (size_t) casts on integer constants.Ray Lai
We should not cover up lint's shortcomings, especially if they no longer exist. ``This is definately good.'' niallo@.
2006-05-09move -e to compat land; pointed out by rayJason McIntyre
ok xsa
2006-05-09Remove /* NOTREACHED */ comments, now that lint is smart aboutRay Lai
__dead. I never should have put them there. OK xsa@.
2006-05-09Remove unused variable leftover from race condition cleanup.Ray Lai
OK xsa@.
2006-05-08Use warnx() when errno is not set.Ray Lai
OK joris@.
2006-05-08properly handle exit code 1; OK ray@.Xavier Santolaria
2006-05-08check for rcs_diffreg() return value; OK ray@.Xavier Santolaria
2006-05-08a few bits about exit status here too; OK jmc@.Xavier Santolaria
2006-05-08correctly handle the `no input file' case.Xavier Santolaria
2006-05-08fix error/verbose messages to match gnu/usr.bin/rcs when using rcsmerge(1).Xavier Santolaria
2006-05-08add DIAGNOSTICS section.Xavier Santolaria
2006-05-08err() and errx() should also exit with status 2;Xavier Santolaria
2006-05-08exit with status 2 after usage() too; pointed out by uwe@.Xavier Santolaria
2006-05-05- fix rcsdiff exit status on success/errors; now matches gnu/usr.bin/rcs.Xavier Santolaria
- add DIAGNOSTICS section to rcsdiff.1 wrt exit codes. ok ray@ and jmc@ for man page bits.
2006-05-05o GNU ci returns 0 when a file is reverted (co -l file; ci file).Ray Lai
o Don't unlock file after revert. o Fix spelling. Passes extra tests in GNU rcstest. OK niallo@.
2006-05-04finish work wrt TMPDIR; use xasprintf() to simplify code while in there;Xavier Santolaria
"looks fine" ray@.
2006-05-03Use xasprintf and xfree.Ray Lai
``But i thought it already went in...'' xsa@
2006-05-03respect TMPDIR; OK ray@.Xavier Santolaria
2006-05-01prevent a very, very stupid buffer overflow in ident_line().Joris Vink
fix for PR 5091 okay niallo@
2006-05-01- fix a case in rcs_getrev() handling of branches where variant was not beingNiall O'Higgins
increased and thus no progress could be made in the loop. bug noticed in rcsdiff(1) by sturm@ ok joris@
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-05-01better description for -b; ok jorisJason McIntyre
2006-05-01rearrange the page to read better, and document branches/revisions/state;Jason McIntyre
ok xsa niallo ray
2006-04-29o Simplify ci by using strchr and strcspn instead of custom loops.Ray Lai
o Search for the ending `$' until the end of the line instead of the end of the string. OK niallo@ and xsa@, possibly joris@.
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-29Make ci store gmtime instead of localtime in RCS files, like GNU.Ray Lai
OK xsa@
2006-04-29Remove dead code.Ray Lai
OK niallo@