summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2006-03-14No need to declare optind/optarg if unistd.h is included.Moritz Jodeit
From David Hill. ok ray@
2006-03-14More use of const and fix a signed/unsigned comparison.Moritz Jodeit
From David Hill. ok ray@ jaredy@
2006-03-14*AliveCountMax applies to protcol v2 only; ok dtucker, djmMarkus Friedl
2006-03-14add an argument to cvs_diff3() to be able to handle verbosity ofXavier Santolaria
commands; fixes rcsmerge -q behaviour. OK niallo@ ray@.
2006-03-14ci currently doesn't parse the -x flag at all, defaulting to ",v/" everyRay Lai
time. I rewrote checkin_choose_rcsfile() to handle it using these rules: - If a directory structure is given (ci -x,abcd dir/dir2/file) then all RCS files are under dir/dir2. - If the RCS/ directory exists, use it. Otherwise use current directory. - If the -x flag is specified, use those slash-separated extensions. Otherwise, use the default (",v/"). - Look in the rcs directory (RCS/ or current directory) for a file with a matching extension, for each extension. Each extension is tried in order. If a file exists, it is used. If no file exists with any extension, the first one is used. - The empty extension is treated as no extension, because I can't figure out what its special meaning is. It sounds complicated, and the code is kinda complicated as well, but it makes sense if you think about it. ok niallo
2006-03-14OpenRCS currently strips any text in a filename up to and includingRay Lai
the last comma, assuming that it is a `,v' extension. GNU RCS does not do this. This removes that check. ok niallo
2006-03-14log the originating address and not just the name when a reverseDamien Miller
mapping check fails, requested by linux AT linuon.com
2006-03-13Do not warn for functions declared with ARGSUSEDMoritz Jodeit
but having no arguments. ok deraadt@ cloder@
2006-03-13delint; from David HillOtto Moerbeek
2006-03-13Remove dependence on /dev/stdin and /dev/stdoutTodd C. Miller
Deal correctly with compressing both stdin and regular files OK jaredy@ deraadt@
2006-03-13Make ssh-add check file permissions before attempting to load privateDarren Tucker
key files multiple times; it will fail anyway and this prevents confusing multiple prompts and warnings. mindrot #1138, ok djm@
2006-03-13Allow config directives to contain whitespace by surrounding them by doubleDarren Tucker
quotes. mindrot #482, man page help from jmc@, ok djm@
2006-03-13Make ssh-keygen handle CR and CRLF line termination when converting IETFDarren Tucker
format keys, in adition to vanilla LF. mindrot #1157, tested by Chris Pepper, ok djm@
2006-03-13Set TCP_NODELAY for all connections not just "interactive" ones. FixesDarren Tucker
poor performance and protocol stalls under some network conditions (mindrot bugs #556 and #981). Patch originally from markus@, ok djm@
2006-03-13don't log that we are listening on a socket before the listen() callDamien Miller
actually succeeds, bz #1162 reported by Senthil Kumar; ok dtucker@
2006-03-12Include arpa/inet.h after netinet/in.h, not before. deraadt@ OKTodd C. Miller
2006-03-12knf nitDamien Miller
2006-03-12plug a memleak in rcs_set_description()Joris Vink
okidoki niallo@
2006-03-12more getopt() EOF crud; adobriyan@gmailTheo de Raadt
2006-03-11Now that the last diff went in, we just have to remove some checks inNiall O'Higgins
rcs_set_rev() to get the GNU-like behaviour for ci -l0, ci -u0 etc (admittedly its weird behaviour...but hey, we should support it) ok joris@
2006-03-11- implement GNU-compatible handling of revisions specified as singleNiall O'Higgins
digits. e.g. ci -l4 or ci -u5 will work like GNU now. ok joris@
2006-03-11type police and assorted cleanup. From Lionel Fourquaux; ok ray@Otto Moerbeek
2006-03-11- set RCS_SYNCED on rcs_open() so that if you call rcs_close() immediatelyNiall O'Higgins
it will not write out a blank RCS file if there is no data in the backing structure. ok joris@
2006-03-11- reset NEWFILE flag on each iteration through main loop. this stopsNiall O'Higgins
strange things happening. - don't print "done" on error. ok joris@
2006-03-11/tmp -> _PATH_TMPRay Lai
ok jaredy, otto
2006-03-11Fixes the `optindx' might be used uninitialized in this functionRay Lai
warning, fixes a spacing nit in a macro, and cleans up a very bad preprocessor abuse (``if LF_ISSET(OS_DEF)''!) optindx turns out to be the index number of the gigantic option list at the beginning of the file. All we need to do is set it before every ``goto err''. The first four are global options, which you can just set optindx to the second argument of o_set(). The last one is in a loop that uses cnt as the index. Since that is cnt's only use, I just removed cnt and used optindx instead. optindx is always updated and we use one less variable. ok miod, otto
2006-03-11Silence 2 warnings.Ray Lai
ok miod, otto
2006-03-11Silence 39 warnings.Ray Lai
ok miod, otto
2006-03-11Silence uninitialized variable warning.Ray Lai
ok miod, otto
2006-03-11Make FLUSH macro more function-like, so there are no hidden surprises.Ray Lai
No binary change. ok miod, otto
2006-03-11Initialize p to NULL to prevent gcc warning.Ray Lai
Clarify a for statement. ok miod, otto
2006-03-11Fix rcsnum_tostr() description.Ray Lai
ok joris
2006-03-10realloc & size_t police; simplify some pointer arithmetic; ok ray@Otto Moerbeek
2006-03-10fix a stupid mistake in cvs_worklist_clean() while loop.Niall O'Higgins
ok joris@
2006-03-10use same date format as gnu/usr.bin/rcs in error message. OK niallo@.Xavier Santolaria
2006-03-10i am going to be hated for including this oneDamien Miller
2006-03-10Only write a log message if the log message is not empty.Ray Lai
Also prevents rfp->rf_desc[-1] from happening. ok joris, niallo, otto, and xsa
2006-03-10Don't ferror() after fclose().Ray Lai
Don't dereference NULL pointer if file is truncated. Sync with cgetnext(3). ok otto and millert
2006-03-10make sure cvs_worklist_clean() is safe, since we areJoris Vink
calling it from inside a signal handler. from deraadt@, ok niallo@
2006-03-09trailing spaces;Joris Vink
2006-03-09should have been part of previous commit (add rcstime.c here too).Xavier Santolaria
2006-03-09move joris' timezone support into rcstime.c; more work to be done there.Xavier Santolaria
OK joris@.
2006-03-08make openrcs use the worklist framework to keep track of temporary filesJoris Vink
and remove them in case it gets interrupted. suggested by deraadt@, ok niallo@
2006-03-08add a worklist framework, which will be used for atomic operations onJoris Vink
files. suggested and help by deraadt@
2006-03-08fix usage();Xavier Santolaria
2006-03-08spacing in usage();Xavier Santolaria
2006-03-08even bettererHenning Brauer
From: Przemyslaw Nowaczyk <p_nowaczyk@o2.pl>
2006-03-08do not point to rcsfile(5) as we do not provide it.Xavier Santolaria
2006-03-08really match gnu on error;Xavier Santolaria
2006-03-08respect -q; pointed out by Ray Lai.Xavier Santolaria