summaryrefslogtreecommitdiff
path: root/usr.bin
AgeCommit message (Collapse)Author
2011-09-26retain alphabetical order for the -Toutput list, and use a widthJason McIntyre
specifier that makes it look nicer; ok schwarze kristaps
2011-09-25Reject $SHELL if it is not a full path.Nicholas Marriott
2011-09-25tweak previous; ok jasperJason McIntyre
2011-09-25improve the AuthorizedPrincipalsFile debug log message to includeDamien Miller
file and line number
2011-09-23Tweaks to the format parts, from Tiago Cunha.Nicholas Marriott
2011-09-23Fix typo: ) -> }.Nicholas Marriott
2011-09-23unbreak remote portforwarding with dynamic allocated listen ports:Markus Friedl
1) send the actual listen port in the open message (instead of 0). this allows multiple forwardings with a dynamic listen port 2) update the matching permit-open entry, so we can identify where to connect to report: den at skbkontur.ru and P. Szczygielski feedback and ok djm@
2011-09-23Add wildcard support to PermitOpen, allowing things like "PermitOpenDarren Tucker
localhost:*". bz #1857, ok djm markus.
2011-09-22Make use of the filename argument to open_error(), pointed out byNicholas Marriott
Michael W Bombardieri. ok millert
2011-09-22Remove the rcsid which were intentionally skipped in the "purge of 2009"Theo de Raadt
because the -V command printed them... gut the -V (and -L, while there) to be silent. ok miod jsg
2011-09-22Revert r1.15. Now that the "C" locale is ASCII-only, this workaroundStefan Sperling
is no longer needed.
2011-09-22don't let remote_glob() implicitly sort its results in do_globbed_ls() -Damien Miller
in all likelihood, they will be resorted anyway
2011-09-21Fix mismerged copyright noticeTodd C. Miller
Use strlcpy() not snprintf() to copy a simple string. OK deraadt@
2011-09-21Use volatile sig_atomic_t, not int, for the sigs variable. AlsoTodd C. Miller
move the call to bell() out of u_interrupt() (a signal handler). OK and with help from deraadt@
2011-09-21Repair interrupted reads; fixes ^Z. OK deraadt@Todd C. Miller
2011-09-21remove rcsids which escaped the purge of 2009Jonathan Gray
2011-09-21As noticed by kristaps@, when breaking an overflowing line,Ingo Schwarze
forget about pending whitespace (vbl), or the next line would be misaligned and potentially too long; but i'm fixing this in a simpler way than he proposed. Also remove the kludges in .HP that compensated for this bug.
2011-09-20groff compatibility for the rendering of foreign manuals:Ingo Schwarze
support .Lb -libdwarf and update .Lb -libelf after Werner Lemberg committed a patch by Joseph Koshy
2011-09-20Major rewrite of the horizontal spacing of tablesIngo Schwarze
to work both with and without frames and rulers. Started during BSDCan 2011 in Ottawa, finished during s2k11 in Ljubljana. ok kristaps@
2011-09-20Don't include fcntl.h (not needed anymore) and use errx(3) instead ofAlexandre Ratchov
fprintf(3) and exit(3). from Michael W. Bombardieri <mwb at bom.nom.co>, thanks!
2011-09-20Using user-defined macros, surprisingly, it is possibleIngo Schwarze
to have *next*-line head arguments on the *same* input line. So .TP must not assume that a head argument with a matching input line number is a same-line argument (and access a NULL pointer). Bug found and fix tested by kristaps@ with groff_hdtbl(7).
2011-09-20add a blurb to caveats about variable expansions to multiple valuesJasper Lievisse Adriaanse
2011-09-20do not assign pointers to literal stringsIngo Schwarze
to variables that might be changed; from kristaps@
2011-09-20When advancing the left margin, .RS also needs to reset the right marginIngo Schwarze
to the default and check that the left does not outgrow the right one. Otherwise, the (rmargin >= offset) assertion fails in term_flushln(). Bug found and fix tested by kristaps@ with NetBSD slapo-retcode(5).
2011-09-20Lose unused variable cvs_msg, from Michael W Bombardieri.Nicholas Marriott
2011-09-20Sync print_mdoc_head to print_man_head;Ingo Schwarze
this was forgotten after man_term.c rev. 1.25 on March 2, 2010. The benefit is a sane page header line when .Dt is very long. Reminded by Thomas Klausner <wiz at NetBSD>, thanks.
2011-09-19Remove the terminal frontend flag TERMP_NOLPAD.Ingo Schwarze
In columnated contexts (.Bl -column, .Bl -tag, .IP, .TP, .HP etc.), do not pad after writing a column. Instead, always pad before writing content. In itself, this change avoids: - writing trailing whitespace in some situations - with .fi/.nf in .HP, breaking lines that were already padded It allows several bugfixes included in this patch: - Do not count backspace as a character with positive width. - Set up proper indentation when encountering .fi/.nf in .HP. - Adjust the .HP indentation width to what groff does. - Never unlimit the right margin unless in the final column. This reduces the groff/mandoc-differences in base by nearly 20%, from 89k to 72k lines of diffs. ok kristaps@
2011-09-19teach kdump about "siginfo-style" signal sub-codes, and the (currently)Theo de Raadt
limited subset of information the kernel supplies. ok miod pirofti
2011-09-19clean up buffer cache statistics somewhat toBob Beck
remove some now useless statistics, and add some relevant ones regarding kva usage in the cache. make systat io and show bcstats in ddb both show these counters. ok deraadt@ krw@
2011-09-19Breaking the line at a hyphen is only allowed if the hyphenIngo Schwarze
is both preceded and followed by an alphabetic character. This fixes about a dozen places in base.
2011-09-18Fix another regression introduced in 1.11.7:Ingo Schwarze
If a string is defined in terms of itself, the REPARSE_LIMIT in read.c used to break the cycle. This no longer works since all the work is now done in the function roff_res(), looping indefinitely. Make this loop finite by arbitrarily limiting the number of times one string may be expanded; when that limit is reached, leave the remaining string references unexpanded. This changes behaviour compared to 1.11.5, where the whole line would have been dropped. The new behaviour is better because it loses less information. We don't want to imitate groff-1.20.1 behaviour anyway because groff aborts parsing of the whole file.
2011-09-18fix a regression introduced in 1.11.7:Ingo Schwarze
even a breakable hyphen may be bold or underlined With this fix, 1.11.7 reduces the groff/mandoc differences in base by about 10% (100k -> 90k lines of diffs) with respect to 1.11.5.
2011-09-18sync to version 1.11.7 from kristaps@Ingo Schwarze
main new feature: support the roff(7) .tr request plus various bugfixes and some refactoring regressions are so minor that it's better to get this in and fix them in the tree
2011-09-18sync to version 1.11.5:Ingo Schwarze
adding an implementation of the eqn(7) language by kristaps@ So far, only .EQ/.EN blocks are handled, in-line equations are not, and rendering is not yet very pretty, but the parser is fairly complete.
2011-09-17Rewrite the main loop of the "sed s/..." command, to fix multipleIngo Schwarze
issues regarding the replacement of zero-length strings. This commit brings back rev. 1.16, but without the regression that forced the backout: No NUL bytes will be output now, not even when the input file lacks a trailing newline character and there is a zero-length match at the end. OK otto@ deraadt@; and naddy@ (who originally found the regression) checked that the regression is indeed fixed.
2011-09-17Initial, incomplete support for -TmanIngo Schwarze
to convert mdoc(7) documents to the man(7) language. This is work in progress and will be developed in tree. It does already handle the cat(1) manual, but will hardly handle all your fancy manuals yet. go ahead kristaps@ jmc@ millert@ deraadt@
2011-09-17Standarize the ToS option across nc/ping/traceroute so that they'llChristiano F. Haesbaert
accept the same values as pf.conf. It accepts decimal, hexadecimal and the dscp/tos keywords. The ping option was ripped of in SMALL. ok mcbride@ sthen@
2011-09-17Change the mandocdb(8) interface to better agree with makewhatis(8);Ingo Schwarze
in particular, allow recursing multiple directories and create multiple databases in one call. This commit includes some reorganization, and exposing mandoc_strdup as a utility function in mandoc.h. written by kristaps@
2011-09-17remove mdoc.samples(7): all info already is in mdoc(7)Ingo Schwarze
feedback and ok jmc@
2011-09-16reorder SENSOR_* in switch() and add missing cases.Yojiro Uo
ok deraadt@
2011-09-16tweak previous;Jason McIntyre
2011-09-16after some thought, i think it unlikely that we will need to specifyJason McIntyre
a revision number for ISO 8601; in addition, the revision number makes the text unwieldy when discussing the standard in a casual manner. therefore change the macro from -8601-4 to simply -8601, which will output "ISO 8601". i'll get kristaps or ingo to make the change upstream to mandoc. discussed with/ok millert
2011-09-16add missing Makefile.incAlexandr Shadchin
2011-09-16Merge in less 444 plus local changesAlexandr Shadchin
ok nicm@
2011-09-16Import of Less 444Alexandr Shadchin
ok nicm@
2011-09-16apply following changes to sensor framework:Yojiro Uo
- change accuracy of SENSOR_FREQ from Hz to muHz - add SENSOR_VOLTS_AC entry to userland programs ok deraadt@
2011-09-16use .St here for ISO 8601 references; ok millertJason McIntyre
2011-09-13as per date(1) and touch(1), document default values used when "yy" isJason McIntyre
given, but not "cc"; ok millert
2011-09-12- (-t) use macros instead of punctuation, to avoid marking up theJason McIntyre
whole argument as an Ar block - (-t) remove a superfluous set of [] around "mm" ok sobrado millert
2011-09-12fix leak in do_lsreaddir(); ok djmMarkus Friedl