summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diffdir.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-10-15Remove three distracting aliases for NULL.mmcc2-15/+11
ok nicm@
2015-10-15Simplify the part of args() that is handling .Bl -column phrases:schwarze1-73/+28
Delete manual "Ta" handling because macro handling should not be done in an argument parser but should be left to the macro parsers, which exist anyway and work well. No functional change, minus 40 lines of code. Confusing and redundant code found while investigating an old bug report from tim@.
2015-10-15When blk_full() handles an .It line in .Bl -column and indirectlyschwarze1-1/+6
calls phrase_ta() to handle a .Ta child macro, advance the body pointer accordingly, such that a subsequent tab character rewinds the right body block and doesn't fail an assertion. That happened when there was nothing between the .Ta and the tab character. Bug reported by tim@ some time ago.
2015-10-15it is perhaps better style to not call close() on -1, even if harmlesstedu1-6/+12
2015-10-15make sure req is zeroed in tcp casetedu1-2/+2
2015-10-15better memory handling of the request/cache chaintedu1-9/+23
2015-10-15do not insert entry into cache until it's fully formedtedu1-2/+2
2015-10-15doh, not all requests are the same size. check len first.tedu1-2/+3
2015-10-15assert is the wrong tooltedu1-3/+4
2015-10-15the inet sockets don't work well with inet6 addrs. pick family from addr.tedu1-3/+3
detected by naddy
2015-10-15everybody can build reboundtedu1-2/+3
2015-10-15no mail for _rebound. deraadttedu1-1/+2
2015-10-15introduce logerr, since most logging is followed by exittedu1-33/+36
2015-10-15don't allow NSD to pick up libevent from /usr/local if the libevent2sthen1-1/+2
package is installed.
2015-10-15now with _rebound user, we can try a little harder at privdroptedu1-3/+11
2015-10-15_rebound user and group (52)tedu2-0/+2
2015-10-15make the HUP interlocking in the parent work better.tedu1-10/+24
2015-10-15trivial KNFderaadt1-3/+5
2015-10-15In syslogd replace the dprintf() macro with a logdebug() functionbluhm3-85/+97
as dprintf(3) is in libc now and does something different. OK guenther@
2015-10-15Pledge login_token with "stdio rpath wpath cpath fattr getpw tty".bluhm1-1/+4
OK deraadt@
2015-10-15just a space in usage, from deraadttedu1-2/+2
2015-10-15Remove an unused included header (sys/stat.h).mmcc1-2/+1
2015-10-15add a hint about the config file, until it changestedu1-1/+5
2015-10-15child can be pledged down a bit to just sockets and iotedu1-1/+6
2015-10-15When using a pf rule with both nat-to and rdr-to, it could happenbluhm1-3/+6
that the nated source port was reused as destination port. Do not initialize nport at the beginning of the function, but where it is needed. OK sashan@
2015-10-15import rebound, a lightweight dns proxy, for further polishingtedu4-0/+648
2015-10-15Introduce an unsigned char variable for the ctype function calls.mmcc1-5/+7
ok millert@
2015-10-15Don't Xr flock, since that is not the locking method used.deraadt1-3/+2
ok millert
2015-10-15Remove disklabel -B (NUMBOOT) support. All the platforms which used to needmiod4-320/+8
it are now using MI installboot for that purpose. ok krw@ deraadt@
2015-10-15Avoid a race between fopen(3) and fchmod(2). Use umask(2) andbluhm1-3/+4
unlink(2) and fopen(3) to prevent an attacker to open an old file with wrong permissions before the secret is written into it. This also guarantees that a new file with correct permissions is created. Without fchmod(2) "fattr" can be removed from pledge. with and OK deraadt@
2015-10-15No need to create links for xxboot now that MI installboot is the preferredmiod1-4/+1
way to install boot blocks.
2015-10-15Use MI installboot instead of disklabel -B to install boot blocks.miod6-36/+19
ok krw@ deraadt@
2015-10-15Add an extra argument to bootstrap() to allow for a limited overlap between anmiod6-14/+31
existing partition and the boot blocks span, and update all callers to require an overlap limit of zero sectors (thus not changing their behaviour). Then, add proper support for vax: copy the 2nd-stage boot block to /boot and install the 1st-stage boot block at the beginning of the disk, retaining the disklabel; allow for an overlap of up to 16 sectors, which is perfectly fine as long as your `a' partition is FFS. Note that regular installs will not even have such an overlap, because the default OpenBSD span on a disk on vax starts at sector 16, but installation media use sperific layout which require this. ok krw@
2015-10-15add missing comma and missing range restriction, found by smilintsthen1-4/+7
2015-10-15relaydMIBObjects, not relaydMIBOjbects. From Rob Pierce.sthen1-4/+6
2015-10-15Remove some unnecessary NULL-checks before free(). Change two bzero()mmcc6-28/+18
calls on pf data to explicit_bzero(). ok mikeb@
2015-10-15Add TIOCFLUSH to "tty" in support of tcflush()deraadt1-1/+2
2015-10-15Exposing FIOASYNC in pledge "ioctl" is a mistake; remove it, cannot find safe uses of itderaadt1-2/+1
2015-10-15Plegde x99token with "stdio rpath wpath cpath fattr getpw tty".bluhm1-1/+4
with and OK deraadt@
2015-10-15Handle F_ISATTY in the fcntl() stub as wellderaadt1-1/+2
ok guenther
2015-10-15remove '!' (subshell) and 'v' (edit) commands from ramdisk more(1) command.deraadt1-114/+1
first off, ^Z job control was added to BSD unix sometime around 1980 and is a much better mechanism since the parent shell can contain what is going on. !command support becomes a visible defect when programs are pledge'd secondly this saves space. ok miod tobias
2015-10-15corrects pledge code for fsck_ffs and fsck_ext2fssemarie4-6/+16
on filesystem error, fsck will try to display username of inode, resulting need of "getpw" for not SMALL version. add a missed (?) -DSMALL in distrib/special/ for fsck_ffs and fsck_ext2fs found by hard way by ajacoutot@ OK millert@
2015-10-15Let the rx path of cnmac run without the kernel lock. To avoid the needvisa1-31/+11
of a mutex, the path no longer cleans up the queue of tx requests. ok mpi@
2015-10-15Fix previous. The port number is not included in sc_src and it isyasuoka1-5/+3
checked already at beginning of the loop. ok reyk
2015-10-15in6_pcbconnect() returns EADDRNOTAVAIL whenvgross1-3/+4
all the ports in the range portfirst .. portlast are in use. ok millert@, mpi@
2015-10-15iobuf_queue() should return the number of bytes it queued on success, not 0gilles1-2/+2
ok eric@
2015-10-15Let "all" as an argument for "resume envelope", "pause envelope"sunil2-3/+12
and "remove" subcommands. seems potentially useful millert@, Ok gilles@
2015-10-15A classic case for bzero() -> explicit_bzero()mmcc1-2/+2
ok deraadt@
2015-10-15Cast arguments of ctype functions to Char, a lexism defined as unsignedmmcc1-5/+5
char. Part of a larger attempt to audit ctype function argument types with Coccinelle. ok deraadt@
2015-10-15FIOCLEX & FIONCLEX should be in base ioctl setderaadt1-3/+3