summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
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@
2006-07-23#include <signal.h> for sig_atomic_t; need this prior to <sys/param.h>Kevin Steves
move
2006-07-22move #include <string.h> out of includes.hKevin Steves
2006-07-22move #include <time.h> out of includes.hKevin Steves
2006-07-21ARGSUSED for signal handlerKevin Steves
2006-07-21more ARGSUSED (lint) for dispatch table-driven functions; ok djm@Kevin Steves
2006-07-21Make PermitOpen take a list of permitted ports and act more like most otherDarren Tucker
keywords (ie the first match is the effective setting). This also makes it easier to override a previously set PermitOpen. ok djm@
2006-07-21Revert; keywords did not expand.Ray Lai
2006-07-21Add binary file support to rcs_expand_keywords(), using BUFs insteadRay Lai
of C strings. OK niallo@
2006-07-20missed some needed #include <unistd.h> when KERBEROS5=no; issue fromKevin Steves
massimo@cedoc.mo.it
2006-07-20Chad Dougherty <crd@andrew.cmu.edu> teaches me how to spell 'supported' ↵Joris Vink
correctly
2006-07-20Add blksize option support for tftpd according to RFC 2348.Marcus Glocker
Note: While testing the new option, we noticed that our stable tftpd has a problem if any option is set (e.g. tsize) and you try to put a file. This has nothing todo with our new blksize option. We fix this as next. ok claudio@
2006-07-19Add ForceCommand keyword to sshd_config, equivalent to the "command="Darren Tucker
key option, man page entry and example in sshd_config. Feedback & ok djm@, man page corrections & ok jmc@