summaryrefslogtreecommitdiff
path: root/sbin
AgeCommit message (Collapse)Author
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@
2007-07-09disable specific gcc optimization that triggers the gcc bugTodd C. Miller
2007-07-09Use -O1 for m68k to work around a gcc optimizer bugTodd C. Miller
2007-07-09remove -WallTodd C. Miller
2007-07-07Pull in ffs2 support and other updates from FreeBSD. OK deraadt@Todd C. Miller
2007-07-07Initialize the first 2 block's worth of inodes for ffs1 as well as ffs2.Todd C. Miller
This was not happening since acg.cg_initediblk gets cleared for the ffs1 case. OK otto@
2007-07-04workaround for [daddr64_t] issue; worked on mostly by otto, wee bit by meTheo de Raadt
2007-07-04another mbr partition type; fgschTheo de Raadt
2007-07-03Correct the '-i' parameters in the examples. The '64' in the -c stringsKenneth R Westerback
is a hex value, so '-i 64' does not allocate enough space. Use '-i 0x64' instead. Found by henning on boxes using ahd/ahc.
2007-07-03allow proto esp/ah in flow specification (especially useful for bypass flows)Markus Friedl
ok hshoexer, mpf
2007-07-01states here too not stateHenning Brauer
2007-06-30allow states instead of just state for -s and -F for consistency's sake.Henning Brauer
since only the first letter matters in the end and state still matches states since we do strncmp this does not change xisting behaviour and just allows plural states to be used as well. pt out by Tom Van Looy <tom@ctors.net>
2007-06-29more daddr64_t changes; checked by ottoTheo de Raadt
2007-06-26Enable creation of larger than 1TB FFS2 filesystems. Note that thisOtto Moerbeek
won't work yet. There remains sys/ufs work. ok deraadt@
2007-06-25some trivial delintingTheo de Raadt
2007-06-25Teach fsdb about 64-bit block addresses. ok moritz@ pedro@Otto Moerbeek
2007-06-25Teach fsck_ffs about 64-bit block addresses. ok (and help) moritz@ pedro@Otto Moerbeek
2007-06-23expand size/offset to 16 characters, and drop the Cyl comments whichTheo de Raadt
noone cares to see anymore (for those architectures where this is important, disklabel(8) continues to enfoce the cyl-locked policy) ok otto
2007-06-23sync description of "-m" option to reality. mcbride@ okJun-ichiro itojun Hagino
2007-06-22daddr_t -> daddr64_t; ok pedro@ thib@Otto Moerbeek
2007-06-21always initialize logif, from max laier, ok ryanHenning Brauer
2007-06-20if a 4.2BSD partition falls partly within the area defined by theOtto Moerbeek
'b' command, subtract the overlapping space from the free space. fixes weird free space calculation on hppa, where converted lif labels start at sector 1, but the 'b' area skips the first cylinder. ok millert@
2007-06-20Allow "log" for nat rules without "pass".Marco Pfatschbacher
OK henning@, ``passt scho'' markus@
2007-06-19Allow IPv6 addresses to use the CIDR notation too, no need for separatePierre-Yves Ritschard
prefixlen specification when using this form. man page bits by jmc. ok henning@, ``looks sane'' djm@.
2007-06-18If disklabel(8) is run against unreadable media (e.g. a blank cd)Kenneth R Westerback
don't say "can't read master boot record". Just display an empty disklabel. Really yucky code that needs a lot of tough love, but marginally less confusing until then. ok deraadt@
2007-06-18-r will die. Until then, make sure any labels it dredges up areKenneth R Westerback
converted to v1 format before being used. ok deraadt@ otto@
2007-06-18typoTheo de Raadt
2007-06-17On Sun machines, disklabels coming from the kernel will now have a d_flagsTheo de Raadt
bit D_VENDOR if they face the Sun cylinder / start-at-zero semantics. Other disklabels found on these architectures do not have these issues, and do not need to be constrained. checked by otto
2007-06-16OK, landisk needs NUMBOOT=1Theo de Raadt
2007-06-16i386/amd64/zaurus/landisk are not NUMBOOT=1 or NUMBOOT=2 architectures.Theo de Raadt
the result was occasional disklabel trashing as a result of disklabel -r, and perhaps other requests to the command; ok krw
2007-06-15don't use static data in recursive functions; from FreeBSD; fixes PR 5509Otto Moerbeek
and other reports about dump accessing wrong blocks; ok beck@ deraadt@
2007-06-14Add a new "rtlabel" option to ifconfig. It allows to specify a route labelReyk Floeter
which will be used for new interface routes. For example, ifconfig em0 10.1.1.0 255.255.255.0 rtlabel RING_1 will set the new interface address and attach the route label RING_1 to the corresponding route. manpage bits from jmc@ ok claudio@ henning@
2007-06-13allow IPv4 addresses to be specified in CIDR notation, no need for seperateHenning Brauer
mask in that case. initially from rivo nurges <rix@estpak.ee>, but changed quite a bit. this has annoyed me so long that I wonder why I hadn't fixed that earlier... input & ok markus deraadt, manpage also jmc
2007-06-12just because sth is an abbreviation or acronym, does not mean it'sJason McIntyre
a tradename: zap erroneous .Tn