summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2000-06-17allow extended server bannersMarkus Friedl
2000-06-17a real nixTheo de Raadt
2000-06-17everyone says "nix it"Theo de Raadt
2000-06-17Needed to allow complete dynamic list removal.Marc Espie
2000-06-17This removes the few instances of Lst_New left.Marc Espie
- replaces Lst_Duplicate with Lst_Clone, which does not allocate storage - split Lst_Concat into Lst_Concat/Lst_ConcatDestroy Thus, all the LstValid checks are gone, since we always invoke list functions with valid pointers. Note that dynamic list allocation accounted for roughly 20% of all calls to malloc. The extraneous calls to malloc left are now mostly in parse.c, which makes some wasteful usage of temporary buffers. With those few patches, the code is sturdier, and easier to maintain. Reviewed by millert@
2000-06-17A few assorted changes, to remove more dynamic lists.Marc Espie
- in Dir_Expand, path is a misnomer. Use a temp variable instead... Reformat code for readability. - Change Parse_MainName/Targ_FindList so that they fill arguments instead of allocating new lists. - nuke Targ_FindList(TG_NOCREATE), as this is never used. - close a small memory hole (forgot to free sysMkPath if CLEANUP). Reviewed by millert@
2000-06-17This patch introduces a distinction betweenMarc Espie
Lst_Init (constructor) and Lst_New (allocation + construction) Lst_Destroy (destructor) and Lst_Delete (deallocation + destruction), and uses that to turn most dynamic allocation of lists (Lst pointers) into static structures (LIST). Most of this is mundane, except for allGNs in targ.c, where the code must be checked to verify that Targ_Init is called soon enough. Lst_New is a temporary addition. All lists will soon be static. Reviewed by millert@, like the previous patch.
2000-06-17This patch moves the definition of lists and list nodes to lst.h.Marc Espie
C is not well-suited for opaque data structures. Then it proceeds by removing a lot of non-sensical casts and white space. There are two motivations behind this change: * small functions like Lst_First can now be redefined as macros safely (otherwise, the cast would mean that you might write Lst_First(5) and find out about it rather late) * the size of the Lst data structure is exposed to user code. This will be used to allocate lists statically, instead of malloc/free them like crazy.
2000-06-16print # of icmp6 error suppressed by rate limitJun-ichiro itojun Hagino
2000-06-15Reflect reality in the error messages.Angelos D. Keromytis
2000-06-14monitor -> monitormode because some OSes have a monitor(3)Todd C. Miller
2000-06-14KAME_SCOPEID is necessaryJun-ichiro itojun Hagino
2000-06-13Conditional INET6 inclusion (for crunchgen uses) -- default yes.Angelos D. Keromytis
2000-06-13Make both ls and dir send a LIST command. Perviously, ls would useTodd C. Miller
NLST but some ftp server (notably wu-ftpd 2.6.x) only list files in the output of NLST. This behavior appears to be RFC conforming and it makes things like "mget *" behave more sanely. To get just the file list you can still use the "nlist" command.
2000-06-12Make the flags field truly optional.Todd C. Miller
2000-06-11newaliases(1) -> newaliases(8)Todd C. Miller
2000-06-11do not add empty lines to history; always check the size of the returnedFederico G. Schwindt
string by el_gets.
2000-06-10Increment pl when filling in pidlist. It was just overwriting the firstTodd C. Miller
entry each time. Unless you have multiple pid files you don't notice which is why this slipped through the cracks. Noted by Jonathan Rozes.
2000-06-10Clean-up patch: use `void *' instead of old-fashioned ClientData/Address.Marc Espie
2000-06-10no longer neededMarc Espie
2000-06-10Thus, Lst_ForEach no longer needs returning a status.Marc Espie
In fact, it can become a macro based on Lst_ForEachFrom. This also introduces Lst_Every, as a shortcut for the very common case where Lst_ForEach does not need any user data. Finally, make consistent use of a few function typedefs, instead of having explicit void (*)(Lst) arguments all over the place.
2000-06-10Lst_Find and Lst_ForEach do the same thing, except that the comparisonMarc Espie
sense is reversed (Lst_Find returns when proc says 0, whereas Lst_ForEach goes on while proc says 0). This patch turns a number of Lst_ForEach into Lst_Find. Specifically, all Lst_ForEach that actually may return quickly as proc does not always returns zero. Of course, the corresponding proc need to be tweaked to swap 0 and 1...
2000-06-09When looking for chown, check in /sbin too.Todd C. Miller
2000-06-07correct description; sarnold@intertrust.comTheo de Raadt
2000-06-07-iname support; karls@inet.noTheo de Raadt
2000-06-07option list MUST be sorted; previous commit broke "and"; karls@inet.noTheo de Raadt
2000-06-07Check return value of malloc(). Also make the code clearer with respect toAaron Campbell
setting lbuf = NULL; millert@ ok
2000-06-06OpenSSH 2.1.1Markus Friedl
2000-06-06fix match_hostname() logic for auth-rsa: deny access if we have a negative ↵Markus Friedl
match or no match at all
2000-06-06close pr1260 from danh@nfol.comEric Jackson
2000-06-05document UseLogin betterMarkus Friedl
2000-06-05allow use_login only for login sessions, otherwise remote commands are ↵Markus Friedl
execed with uid==0
2000-06-05Need defines for UVM on 68k.Artur Grabowski
2000-06-05Update to sudo 1.6.3p4Todd C. Miller
2000-06-04Handle the case where the last line of input does not contain a newline; issueAaron Campbell
reported by marc@snafu.org. The main thing here is we use fgetln() instead of fgets(), also giving us the advantage of being able to handle lines of unlimited length. Some -Wall and other fixes from millert@ as well.
2000-06-04Fix one-byte overflow; millert@ okAaron Campbell
2000-06-03correct documented return valueEric Jackson
2000-06-02Explicitly state that newsyslog does not send a HUP to syslogd ifTodd C. Miller
you tell it to run a command for the log file.
2000-06-02teach protocol v2 to count login failures properly and also enable anTodd T. Fries
explanation of why the password prompt comes up again like v1; this is NOT crypto
2000-05-31typo, unusedMarkus Friedl
2000-05-31xauth_location support; pr 1234Markus Friedl
2000-05-30remove dependency on openssl-0.9.5a; green@FreeBSD.org via kris@FreeBSD.orgMarkus Friedl
2000-05-30don't panic if mkdtemp fails for authfwd; jkb@yahoo-inc.com via kris@FreeBSD.orgMarkus Friedl
2000-05-29forwardagent defaults to no, add ssh -AMarkus Friedl
2000-05-29enable mgTheo de Raadt
2000-05-29Print space between the last process to attach/use and the access time.Angelos D. Keromytis
2000-05-28remove crudTheo de Raadt
2000-05-27always enter pctrTheo de Raadt
2000-05-27urhm, this is flakeyTheo de Raadt
2000-05-25split kexinit/kexdh, factor out common codeMarkus Friedl