summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2006-08-07Flush printf buffer before directly writing to STDIN_FILENO. PreventsRay Lai
the printf output from printing after the rcs_buf_write_fd output. ``ok!'' joris@
2006-08-06+.Sh STANDARDSJason McIntyre
from espie, tweaked by myself;
2006-08-06"zlib.h" can be <zlib.h>; ok djm@ markus@Kevin Steves
2006-08-05Remove "with with" typos.Ray Lai
Fix by Tobias Stoeckmann <tobias at bugol dot de> in PR 5193.
2006-08-05Typo in commentDarren Tucker
2006-08-05Zap unused variables in -DSKEY code. ok djm@Darren Tucker
2006-08-05Add headers required to build with -DSKEY. ok djm@Darren Tucker
2006-08-05Add headers required to build with KERBEROS5=no. ok djm@Darren Tucker
2006-08-04spacesKevin Steves
2006-08-04Make -n flag refer to -N flag instead of the other way around, since theRay Lai
-N flag is above. OK xsa@ and jmc@
2006-08-04Add bug: may not work with binary data.Ray Lai
OK jmc@
2006-08-04Remove unnecessary strlcpy/strlcat.Ray Lai
``Oh man!'' xsa@
2006-08-03almost entirely get rid of the culture of ".h files that include .h files"Theo de Raadt
ok djm, sort of ok stevesk makes the pain stop in one easy step
2006-08-02strlcpy/strlcat overload made deraadt@ sick; change to xasprintf.Ray Lai
OK niallo@
2006-08-02rcs_buf_set(), rcs_buf_append, and rcs_buf_fappend should not returnRay Lai
ssize_t. The return values aren't usually checked anyway. Also remove unnecessary casts and improve type usage. OK xsa@
2006-08-02Sync CVS's rcs_expand_keywords() and rcs_kwexp_buf() with RCS.Ray Lai
OK niallo@
2006-08-02Fix a lot of buffer overflows and make the code more binary safe.Ray Lai
Also reduce a lot of redundant for() loops. OK niallo@
2006-08-01clean extra spacesKevin Steves
2006-08-01move #include <stdio.h> out of includes.hKevin Steves
2006-08-01* move sys/queue.h inclusion to sysdef.h (it's system specific)Jason Wright
* add <signal.h> to sysdef.h (needed for sig_atomic_t on linux, and we get it by accident on OpenBSD) * remove <signal.h> from tty.c/spawn.c (not needed now that it's in sysdef.h) ok beck
2006-08-01Allow fallback to known_hosts entries without port qualifiers forDarren Tucker
non-standard ports too, so that all existing known_hosts entries will be recognised. Requested by, feedback and ok markus@
2006-08-01Reduce rcs_buf_release() usage, improving binary support.Ray Lai
OK niallo@
2006-07-31Minor KNF.Ray Lai
OK xsa@
2006-07-30order includes to KNFKevin Steves
2006-07-30Remove double variable assignment.Ray Lai
From Bret Lambert <bret dot lambert at gmail dot com> OK krw@ and deraadt@.
2006-07-30Sync some whitespace changes from rcs. No binary change.Ray Lai
2006-07-28Recalculate buffer length after each expansion.Ray Lai
OK niallo@
2006-07-27unused functionTheo de Raadt
2006-07-27avoid confusing wording in HashKnownHosts:Jason McIntyre
originally spotted by alan amesbury; ok deraadt
2006-07-27Second try at adding binary file support to rcs_expand_keywords(),Ray Lai
using BUFs instead of C strings. Also remove initial keyword search, which is a premature optimization, slower, and apparently too hard for me to get right. OK niallo@
2006-07-27Pull in improper memory allocation from RCS:Ray Lai
> Not were we allocating memory for a pointer array, it wasn't even for > the right variable! Fixes make regress with MALLOC_OPTIONS=PR. > > Found by and fix worked on with Joris.
2006-07-27Not were we allocating memory for a pointer array, it wasn't even forRay Lai
the right variable! Fixes make regress with MALLOC_OPTIONS=PR. Found by and fix worked on with Joris. OK niallo@, tested by pedro@.
2006-07-27unused variableTheo de Raadt
2006-07-27spacingTheo de Raadt
2006-07-27unused variableTheo de Raadt
2006-07-26Make tftp atoi() free.Marcus Glocker
2006-07-26TIMEOUT* values are not part of the protocol. tftp.h is a namespaceTheo de Raadt
export of the protocol. you shall not add non-protocol stuff to such a file, period.
2006-07-26move #include <stdlib.h> out of includes.hKevin Steves
2006-07-26Mini KNF. No binary changes.Marcus Glocker
2006-07-26Fixing several timeout quirks at tftpd and tftp:Marcus Glocker
- move TIMEOUT* defines to arpa/tftp.h, as they are used several times in tftpd and tftp, and the values are part of the RFC definition. - tftpd and tftp did count the total retransmission time in retries instead in seconds. fixed. - tftpd rexmt timeout was hardcoded by a define and therefore didn't changed when the timeout option was sent. fixed. - limit total retransmission timeout in tftp to also 255 seconds. - replace obvious atoi()'s by strtonum(). ok claudio@
2006-07-26move #include <sys/param.h> out of includes.hKevin Steves
2006-07-25Add bfirstlp(), blastlp() macros, returning the first and last linesKjell Wooding
of a buffer respectively. Removes an ugly construction than necessitated "go to first line"-type comments throughout the code. No binary change
2006-07-25Rename the header line of a buffer to b_headp, from the remarkablyKjell Wooding
unintuitive b_linep. No binary change.
2006-07-25move #include <sys/time.h> out of includes.hKevin Steves
2006-07-25need #include <string.h>Kevin Steves
2006-07-24eliminate hyphen madness;Jason McIntyre
2006-07-24tweaks;Jason McIntyre
2006-07-24Adding TFTP Option Extension to the tftp client according to RFC 2347.Marcus Glocker
Implemented options are: - TFTP Blocksize Option, RFC 2348 - TFTP Timeout Interval and Transfer Size Options, RFC 2349 We have now on the tftp client side the same options supported as in our tftp server. ok claudio@
2006-07-24Use 'cp -R' instead of 'cp -r' in the example of the -J option.Bernd Ahlers
ok jmc@
2006-07-24disable tunnel forwarding when no strict host key checkingKevin Steves
and key changed; ok djm@ markus@ dtucker@