summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
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).
2000-07-09Better conditions for strsep() ending.Hakan Olsson
2000-07-09KNFTheo de Raadt
2000-07-08replace strtok with strsep; from David Young <dyoung@onthejob.net>Niels Provos
2000-07-08Add a -flags option similar to -perm but for filke flags (alaTodd C. Miller
chflags). Adapted from FreeBSD.
2000-07-08Move option flags that don't require arguments to the first of the list inAaron Campbell
the SYNOPSIS section to be more consistent with our other man pages.
2000-07-07avoid non-formatter printf, use fputsTheo de Raadt
2000-07-07or just use puts() insteadTheo de Raadt
2000-07-07heck, be more careful with printf here tooTheo de Raadt
2000-07-07fixed formatting in numlabels; danhTheo de Raadt
2000-07-07If the timeout is not set, don't send a zeroed timeout to select.Artur Grabowski
This solves the problem with nc hogging all cpu.
2000-07-07sense of port forwarding flag test was backwardsTheo de Raadt
2000-07-07clean code is good codeTodd T. Fries
2000-07-06more statsJun-ichiro itojun Hagino
2000-07-06use %s with printf familyTheo de Raadt
2000-07-06i feel dirty whenever i edit in hereTheo de Raadt
2000-07-06do not assume h_errs[] is clean, use %sTheo de Raadt
2000-07-06snprintf with %s when copying the pagerTheo de Raadt
2000-07-06printf with % for the promptTheo de Raadt
2000-07-06Insert more missing .El directives. Our troff really should identify these andAaron Campbell
spit out a warning.
2000-07-06Insert missing .El directive; todd@Aaron Campbell
2000-07-05typoNiels Provos
2000-07-05use no_x11_forwarding_flag correctly; provos okTheo de Raadt
2000-07-04Back out unwanted testing changeMarc Espie
2000-07-02Make the m4 machine stack dynamically sized.Marc Espie
Fix strspace automatic extension. The assumption that simply updating the current pointer works is false, there are cases where previous entries on the stack would absorp vast amounts of string space, and overload the non-updated entries. To fix it, we use a shadow copy of the stack, which only records which entries are pointers within strspace, so that a resize can adjust all those pointers at once. Reviewed by millert@