summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
2007-09-13use strcspn to properly overwrite '\n' in fgets returned bufferCharles Longeau
use strtonum instead of atoi prompted by ray@ ok moritz@ ray@
2007-09-12Here too: Add support to the lex for parsing number out of the stream.Hans-Joerg Hoexer
handle this in the parser. better range checks. with and ok deraadt@
2007-09-12add a missing range check for rtable ids; ok cloder henningTheo de Raadt
2007-09-12Add support to the lex for parsing number out of the stream. handleTheo de Raadt
this in the parser. because the new numbers are int64_t, many new range checks for < 0 are needed. re-check and improve all the existing rangechecks while at it. thanks for help by cloder and dhartmei
2007-09-11use strcspn to properly overwrite '\n' in fgets returned bufferGilles Chehade
ok pyr@, ray@, millert@, moritz@, chl@
2007-09-11rearrange the mount_vnd examples to show the equivalent entry for eachAlexandre Anriot
vnconfig example, instead of having a bunch of different examples. discussed with and ok jmc@ grunk@
2007-09-10Proper use of fseek/fseeko macros.Tobias Stoeckmann
OK joris@, otto@
2007-09-08make bioctl behave like a unix program and exit 1 on errorHenning Brauer
ok deraadt, silence dlg marco
2007-09-07check fgets return valueCharles Longeau
use sizeof buf instead of TP_BSIZE use strcspn to properly overwrite '\n' in fgets returned buffer ok moritz@ ray@
2007-09-05Correct the format strings after the recent rt_metrics changes.Claudio Jeker
rmx_pksent is not u_int64_t all others are just u_int. This is almost the same as in usr.bin/netstat.
2007-09-05remove compat link to /usr/sbin/vnconfig, the program is in /sbin for oneAlexander von Gernler
release now. ok deraadt@ todd@
2007-09-03malloc(n * m) -> calloc(n, m); ok espieTheo de Raadt
2007-09-03Typos from miod. 'specificed' -> 'specified' in some comments and man page.Kenneth R Westerback
2007-09-02more malloc(n * m) -> calloc(n, m); from Igor ZinovikTheo de Raadt
2007-09-02use calloc() to avoid malloc(n * m) overflows; checked by djm canacar jsgTheo de Raadt
2007-08-30add support for address ranges ("from 10.1.2.50 - 10.1.3.75") in from/toDaniel Hartmeier
criteria. ok mcbride@
2007-08-25missing free, Igor Zinovik <zinovik@cs.karelia.ru>Henning Brauer
2007-08-21no need to include both sys/types.h and params.hHans-Joerg Hoexer
2007-08-15Remove a superflous debug fprintf.Hans-Joerg Hoexer
2007-08-14make default_lease_time a #define; ok krw@ henning@Kevin Steves
2007-08-11Kill a couple of 'echo' statements that can never produce visibleKenneth R Westerback
output. i.e. not visible on the screen, nor in any log. If nothing else, makes dhclient-script smaller for install media. 'yesh kill' (sic) henning@
2007-08-11Do not complain about being not able to read non-existing files. MinorHans-Joerg Hoexer
glitch introduced by previous commit. ok markus@
2007-08-10duplicate strdup; ok hshoexerMarkus Friedl
2007-08-07m_priv_req_readdir(): check file type after fstat, since d_typeMarkus Friedl
is not passed over NFS (unless readdir+ is used). fixes pr 5557 with and ok hshoexer@
2007-08-06the ellipsis is not an optional argument; while here, sync the usageIgor Sobrado
and synopsis of commands lots of good ideas by jmc@ ok jmc@
2007-08-05Allow key exchange with RSA signature authentication to work withTom Cosgrove
Cisco IOS and other initiators that only send their certs in response to CERT_REQUEST. With input and help from cloder@, Stuart Henderson, mpf@, and several others who did lots of testing - thanks to all. ok hshoexer@
2007-08-01cats went awayTheo de Raadt
2007-08-01cats went awayTheo de Raadt
2007-07-31Use correct function name in log message. Noticed by Igor ZinovkHans-Joerg Hoexer
zinovik@cs.karelia.ru. Thanks!
2007-07-31oops, forgot to include the man page tweaks from jmc@Pierre-Yves Ritschard
2007-07-31When setting the vlandevice without specifying a tag, infer the tagPierre-Yves Ritschard
from the interface name, this allows constructs like: ifconfig vlan15 vlandev smth0 ok reyk@, ``makes sense'' henning@
2007-07-30strlen returns size_t.Pierre-Yves Ritschard
ok henning, mbalmer.
2007-07-30avoid segfault when empty string is passed as interface name.Pierre-Yves Ritschard
ok henning@
2007-07-26use calloc() instead of malloc(); zinovik@cs.karelia.ruTheo de Raadt
2007-07-24Sync closer to netstat/show.c this removes also the unneeded variableClaudio Jeker
noticed by Igor Zinovik.
2007-07-24rearrange newline printing code during editor startup; ok millert krwTheo de Raadt
2007-07-21Check the rtm_version before trying to print an entry. If the rtmsg has aClaudio Jeker
different version skip it and don't try to print it. Solves a SIGSEGV I have triggered with one of my scarier diffs. OK henning@
2007-07-19kern.timecounter.timestepwarnings may be altered; from Kristaps DzonsonsJason McIntyre
2007-07-18hw.sensors is a tree, so describe/expand it as such; 'put it in' jmc@Constantine A. Murenin
2007-07-18eliminate duplicate code to open lease file and just open atKevin Steves
startup; ok krw@ henning@
2007-07-17remove m68k gcc workaround now that the gcc fix is in; ok miod@Todd C. Miller
2007-07-17rmoev the macppc workaround, now that isset() and friends use expressionsOtto Moerbeek
that gcc likes better
2007-07-17sync swapon usage(); from Igor ZinovikJason McIntyre
2007-07-17do not try to list which options go with -p: the list is currently out ofJason McIntyre
date, and even if i update it, it will obsolete itself if we add or remove options. it works when it makes sense, like it should. after a request from Igor Zinovik
2007-07-16Remove dead code and fix incorrect comment. From Igor Zinovik.Todd C. Miller
2007-07-16No need to include <sys/param.h> or <errno.h>. Also reorder includesTodd C. Miller
while here. Adapted from a diff by Igor Zinovik.
2007-07-11ffs2 support from FreeBSD. Tested by jmc@ and kili@Todd C. Miller
2007-07-11put -q in the right place;Jason McIntyre
2007-07-10implement -q to query a scsi disk for its inquiry data (vendor, model,Henning Brauer
revision, serial #) and print that. when the default bio ioctl fails with ENOTTY because the given disk is not on a bio-supported raid controller, fall back to -q. use strnvis to sanitize inquiry data so it is safe to use in scripts. ok deraadt
2007-07-09correct a typo in an error message.Thordur I. Bjornsson
use realpath(3) to sanitize the path we're going to work with, prevents silly errors when passing ncheck_ffs paths from the shell with a trailing '/' since that doesnt match the entry in fstab. ok deraadt@,krw@