summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2000-07-27If the HOME environment variable is not set, do not try to readTodd C. Miller
.netrc from cwd. Mostly paranoia but good practive. Closes PR 1332.
2000-07-27Handle unlimited diverts for m4 -g.Marc Espie
Problem with autoconf noticed by d@
2000-07-26Still truncate too long identifiers, but avoid writing all over the stack.Marc Espie
2000-07-26typoTheo de Raadt
2000-07-26Rip out old dead legal notice, refer to BSD license. Clean up authors/historyIan Darwin
section.
2000-07-25o check that we are on a tty (and bail if not)Todd C. Miller
o in panic() just call exit() not abort()
2000-07-25deal with a number of overflows pointed out by fuzz; in most cases, we ↵Theo de Raadt
truncate the symbol in question
2000-07-25KNFTheo de Raadt
2000-07-25a quick fix, and then i run away screaming in terrorTheo de Raadt
2000-07-25Fix indent endless on garbage input.Marc Espie
Found by deraadt@
2000-07-24Implement esyscmdMarc Espie
2000-07-24Oops.Marc Espie
2000-07-24Update to ncurses-5.1-20000722Todd C. Miller
2000-07-23When moving temp file -> .depend use "mv -f"Todd C. Miller
2000-07-22random early drop; ok theo, nielsMarkus Friedl
2000-07-20document input and output filesMarkus Friedl
2000-07-20Code cleanup, user errx and warn instead of the hacks already there.Eric Jackson
2000-07-20missing free, reorderMarkus Friedl
2000-07-19chflags no moreMichael Shalayeff
2000-07-19new strtofflags/fflagstostrMichael Shalayeff
2000-07-18Handle MAKEFLAGS variation mandated by POSIX.Marc Espie
Code to pass variable definitions to submakes through make flags. Not activated yet, need to fix src/ first.
2000-07-18Another closing of stdin; ok deraadtDamien Miller
2000-07-17FALLTHRU -> FALLTHROUGH, requested by miod@ and style(9)Marc Espie
2000-07-17parse embedded variable specs, e.g., ${VAR_${SUB}}Marc Espie
- need braces, as we don't want to change what $$A means, - this assumes this kind of construct is very infrequent, thus this does NOT copy the variable name needlessly. - the expansion code is in a separate function for clarity. Reviewed by miod@, as previous patches.
2000-07-17- let VarModifiers_Apply accept NULL string gracefully,Marc Espie
- simplify Var_Parse: use varfind, then leverage on the result to recognize `special case' dynamic parsing. VarModifiers_Apply need to be called on NULL strings, to be able to parse modifiers applied to non-existent variables. (Alternately, we could call VarModifiers_Apply on a dummy string, but this is less efficient).
2000-07-17Major unobfuscation: split var modifiers handling to a separate file.Marc Espie
This does finally make var handling somewhat readable.
2000-07-17separate modifiers handling from Var_Parse into a separateMarc Espie
VarModifiers_apply function. for env lookup, create variable structure first, so that we can get away without terminating the variable name in main Var_Parse.
2000-07-17Str_Match returns TRUE or FALSE, better style to test those ratherMarc Espie
than 1 or 0.
2000-07-17This does replace Str_Match with a better routine, which handles negatedMarc Espie
intervals, and \\ in intervals. Accordingly, var.c no longer needs to copy the :Marg to replace \: with : We don't use fnmatch(3) because of various optimizations which are harder to achieve in a generic setting. Also add regression suite for the Str_Match function.
2000-07-17Constify a few functions, propagated from VarModify.Marc Espie
Replace a few int -> size_t Reviewed by miod@
2000-07-17- recognize that FIND_CMD and FIND_GLOBAL are always used together,Marc Espie
- introduce VarFind_interval function. This avoids having to copy variable names in VarParse, - expose internals of VarFind* function (not used yet, but this will avoid multiple lookups in VarParse), - constify a few functions. Reviewed by miod@
2000-07-17Consistency bug: for substitution should look in the same places otherMarc Espie
variable substitution is.
2000-07-17 o use strlcpy() where sensibleTodd C. Miller
o when trying to login as root on a non-secure tty always say "login refused" regardless of whether the password is correct or not
2000-07-16Add -o option for printing file offset. Also some whitespace reformatting.Hugh Graham
Handy. Checked by millert and niklas.
2000-07-16make ssh-add accept dsa keys (the agent does not)Markus Friedl
2000-07-15Always create ~/.ssh with mode 700; ok MarkusDamien Miller
2000-07-14 allow leading whitespace. ok nielsMarkus Friedl
2000-07-14previous two patches mixed up if/else matchingTheo de Raadt
2000-07-13close can fail on AFS, report error; from Greg Hudson <ghudson@mit.edu>Niels Provos
2000-07-13typo; todd@fries.netNiels Provos
2000-07-13allow multiple whitespace but only one '=' between tokens, bug report fromNiels Provos
Ralf S. Engelschall <rse@engelschall.com> but different fix. okay deraadt@
2000-07-12make whois(1) IPv6-ready. patch from deraadt + minor tweaks.Jun-ichiro itojun Hagino
2000-07-12remove m_pulldown statistics, it is purely experimental and belongs toJun-ichiro itojun Hagino
kame system only (not for *bsd-merged systems).
2000-07-11disable FallBackToRsh by defaultTheo de Raadt
2000-07-11make MaxStartups code still work with -d; djmTheo de Raadt
2000-07-10Typo & style fix.Ian Darwin
2000-07-10strtok() --> strsep(). (niels@ ok)Hakan Olsson
2000-07-10Get the correct message on errors. (niels@ ok)Hakan Olsson
2000-07-10Xr chflags(1)Todd C. Miller
2000-07-10Bail if getch() returns ERR. In ncurses < 5.1 getch() incorrectlyTodd C. Miller
returned 0 on EOF (due to a side effect of how curses buffers reads).