summaryrefslogtreecommitdiffstats
path: root/usr.bin/diff/diff.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2015-10-26change some pledge_fail() error/codesemarie1-4/+4
- for PLEDGE_FATTR: the code is more accurate to be PLEDGE_FATTR, has p->p_pledgenote could have multiple bits inside, and it is the lake of PLEDGE_FATTR that make the check fail. - for PLEDGE_RECVFD and PLEDGE_SENDFD, change the error to be EINVAL: we fail, not because of lake of PLEDGE_RECVFD / PLEDGE_SENDFD permission, but because the value passed is invalid in pledged program (for example trying to send a VDIR). "go ahead" deraadt@
2015-10-26make pledge_check(), used for syscall check with pledge, returns an error andsemarie3-10/+17
provide the required pledge request for pledge_fail(). ok deraadt@
2015-10-26Using realm for bsdauth is misleading. It is currently unusable.yasuoka1-5/+5
2015-10-26temporary unhook regress/sys/kern/pledge from regresssemarie1-2/+4
2015-10-26Fix typo certopt->certopts in shell variable. This would cause the test todtucker1-2/+2
hang at a host key prompt if you have an A or CNAME for "proxy" in your local domain.
2015-10-26Cast isdigit()'s argument to unsigned char.mmcc1-2/+2
ok guenther@
2015-10-26adjust macro usage to the usual conventionsschwarze1-481/+483
2015-10-26Partial revert of r1.79, "np" handling is a bit trickier than expected.jca1-4/+3
2015-10-26Set low-delay traffic class for IPv6 connections as welljca1-11/+14
While here, there is no option to pass a different tos, and no other use of the "tos" variable out of tn(), so move the "tos" variable in tn() and assign it the right value from the start. ok millert@
2015-10-26Rename the struct pollfd array, "set" -> "pfd"jca1-10/+10
"set" reminds of select(2) fd_set, and is never used elsewhere in the tree as a name for a pollfd array. No functional change.
2015-10-26Those variables should be local to the functions where they are used.jca1-12/+11
Gets rid of a lot of warnings with -Wshadow. No functional change.
2015-10-26space before punctuation;jmc1-3/+3
2015-10-26Kill unused variable and function.jca1-16/+1
No functional change.
2015-10-25hms() returns a pointer to static storage, annotate the return type with "const"jca1-3/+3
No functional change.
2015-10-25Correctly print size_t/time_t.jca1-7/+7
No functional change.
2015-10-25Expand tildes in filenames passed to -i before checking whether or not thedtucker1-6/+7
identity file exists. This means that if the shell doesn't do the expansion (eg because the option and filename were given as a single argument) then we'll still add the key. bz#2481, ok markus@
2015-10-25Plug memory leak introduced in r1.15.jca1-11/+1
No functional change.
2015-10-25Do not prepend "exec" to the shell command run by "Match exec" in a configdtucker1-10/+3
file. It's an unnecessary optimization from repurposed ProxyCommand code and prevents some things working with some shells. bz#2471, pointed out by res at qoxp.net. ok markus@
2015-10-25No longer create /var/run/ftpd.pid in daemon mode; OK jung@ jca@millert2-10/+4
2015-10-25Those two functions take no parameters, thus /* ARGSUSED */ is meaningless.jca1-3/+1
No functional change.
2015-10-25Sync surrounding code after reallocarray introduction.jca1-3/+3
No functional change.
2015-10-25Rename allocopy() to xstrdup(), and make use of strdup(3).jca1-11/+9
No functional change.
2015-10-25Kill unused ROUTE6D_CONF define.jca1-5/+1
Since 1999 no one has found the need to write support for a config file.
2015-10-25Another pidfile(3) removal; ok benno@jca2-6/+2
2015-10-25In case of error, also log the file name we failed to open.jca1-2/+2
2015-10-25Extend the modifiers allowed before formats: as well as the existingnicm5-113/+175
#{=10:...} length limit, add #{t:...} to convert a time_t format to a string, #{b:...} for basename and #{d:...} for dirname. Remove all the foo_string time formats as they can now be replaced by "t:", for example #{window_activity_string} becomes #{t:window_activity}.
2015-10-25unifdef some oldness. (BSD not defined since removal of param.h)tedu1-10/+1
ok jca sthen
2015-10-25ansifyjca6-45/+27
2015-10-25unbreak tree for ramdisks without INET6deraadt1-1/+3
2015-10-25Unify & improve paragraphs talking about "==> file <==" headers inzhuk2-12/+12
head(1) and tail(1). Input & okay from jmc@
2015-10-25Remove PIDDIR and PIDFILE missed in previous commit.millert1-12/+1
2015-10-25syncderaadt2-42/+1
2015-10-25Put some comments in how nd6_rs_attach() works.florian1-1/+9
Requested by stsp
2015-10-25pledge "stdio inet route"; ok deraadt@jca1-1/+4
2015-10-25Remove cron.pid support. We still want to avoid multiple cronsmillert4-128/+18
running so verify that if the cron socket exists nothing is listening on it. OK tedu@
2015-10-25Stop writing down a pidfile.jca3-15/+5
pid files aren't useful on OpenBSD, the rc.d(8) framework doesn't use them. In rtadvd, not writing a pid file means that we can set tighter pledge(2) settings. Also the pid file handling is pretty basic and the atexit handler can't remove the pid file since rtadvd did a chroot - beurk. ok florian@, "perfect" deraadt@ (!)
2015-10-25Fix installboot(8) on i386/amd64 when softraid is on top of GPT.stsp3-5/+11
ok krw deraadt
2015-10-25Fold "malloc" into "stdio" and -- recognizing that no program so far hasderaadt13-222/+326
used less than "stdio" -- include all the "self" operations. Instead of different defines, use regular PLEDGE_* in the "p_pledgenote" variable (which indicates the operation subtype a system call is performing). Many checks before easier to understand. p_pledgenote can often be passed directly to ktrace, so that kdump says: 15565 test CALL pledge(0xa9a3f804c51,0) 15565 test STRU pledge request="stdio" 15565 test RET pledge 0 15565 test CALL open(0xa9a3f804c57,0x2<O_RDWR>) 15565 test NAMI "/tmp/testfile" 15565 test PLDG open, "wpath", errno 1 Operation not permitted with help from semarie, ok guenther
2015-10-25pledge "route" no longer needed for if_indextoname & if_nametoindexderaadt1-2/+2
2015-10-25Write error message instead of duplicated file name on error.tobias1-2/+2
ok deraadt
2015-10-25Change test to use length 128 (shortest long-form encoding).doug1-2/+2
From BoringSSL commit: d13a5e15d4e4eb51513be665306a2beba39869df
2015-10-25pr_bitrange() is unused, nuke it.florian1-48/+1
2015-10-25remove prototype for removed pingerlen function.florian1-2/+1
2015-10-25enable asmc(4) on i386jung1-2/+2
2015-10-25refactor to use a taskq and postpone the long running initial sensor probing,jung1-248/+264
also avoid excessive tsleep()s for updates within the sensor task, moreover this should fix some seldom seen 'comm collision' errors
2015-10-25Wrap waitpid() so calls go direct; weaken wait() and wait3().guenther4-12/+34
Strip out unnecessary #includes and use NULL instead of (struct rusage *)0
2015-10-25Rename imsg_compose_parent and imsg_compose_rde to imsg_ctl_parent andclaudio3-20/+24
imsg_ctl_rde since these function should only be used by the control code. Also switch ibuf_rde to ibuf_rde_ctl so that the control imsgs don't need to queue behind all the incoming bgp UPDATES. This speeds up 'bgpctl show' from taking minutes to a few seconds. The RDE was doing this since a very long time but it seems the SE was not adjusted. Yikes
2015-10-25Only run the rib_dump_runner() if there is something pending and theclaudio1-2/+3
control socket has not many messages queued.
2015-10-25Cast ctype functions' argument to unsigned char.mmcc1-7/+7
ok guenther@
2015-10-25Move the _atfork_list definition to atexit.c so that the fork syscall stubguenther2-5/+6
doesn't get pulled into all static executables ok millert@ jca@