openbsd
9 years agoIntroduce a new flag to identify "self" neighbors attached to local interfaces.
renato [Tue, 27 Oct 2015 03:25:55 +0000 (03:25 +0000)]
Introduce a new flag to identify "self" neighbors attached to local interfaces.

9 years agoPrint a missing "metric" before the actual metric when printing a
renato [Tue, 27 Oct 2015 03:23:30 +0000 (03:23 +0000)]
Print a missing "metric" before the actual metric when printing a
redistribute line.

9 years agolog certificate serial in verbose() messages to match the main
djm [Tue, 27 Oct 2015 01:44:45 +0000 (01:44 +0000)]
log certificate serial in verbose() messages to match the main
auth success/fail message; ok dtucker@

9 years agoavoid de-const warning & shrink; ok dtucker@
djm [Tue, 27 Oct 2015 00:49:53 +0000 (00:49 +0000)]
avoid de-const warning & shrink; ok dtucker@

9 years agoIf a mouse event has no key binding, pass it through to the pane it
nicm [Mon, 26 Oct 2015 23:16:18 +0000 (23:16 +0000)]
If a mouse event has no key binding, pass it through to the pane it
happened in, not the active pane like normal key presses. Fixes problems
seen by Enrico Ghirardi.

9 years agoDefault bindings for mouse wheel on status line to change window (like
nicm [Mon, 26 Oct 2015 23:06:18 +0000 (23:06 +0000)]
Default bindings for mouse wheel on status line to change window (like
we had before), from Patrick Palka.

9 years agoTidy up error() levels: merge COMPILE and COMPILE2, and kill ERROR (unused)
jca [Mon, 26 Oct 2015 22:24:44 +0000 (22:24 +0000)]
Tidy up error() levels: merge COMPILE and COMPILE2, and kill ERROR (unused)

ok tobias@

9 years agoUse error(FATAL) instead of what was previously err(1,...)
jca [Mon, 26 Oct 2015 22:22:56 +0000 (22:22 +0000)]
Use error(FATAL) instead of what was previously err(1,...)

ok tobias@

9 years agomiscellaneous cruft:
naddy [Mon, 26 Oct 2015 22:03:06 +0000 (22:03 +0000)]
miscellaneous cruft:
* remove lint
* unifdef S_IFLNK, S_ISFIFO, S_ISLNK, S_ISSOCK, O_APPEND
* remove 0, NOTUSED, notdef -- untouched since original import
* remove IIASA

9 years agoHandle unknown keys more gracefully, return a string instead of NULL.
nicm [Mon, 26 Oct 2015 22:03:04 +0000 (22:03 +0000)]
Handle unknown keys more gracefully, return a string instead of NULL.

9 years agoremove the profiling and debugging ifdefs; ok zhuk@
naddy [Mon, 26 Oct 2015 21:57:42 +0000 (21:57 +0000)]
remove the profiling and debugging ifdefs; ok zhuk@

9 years agodocument the -p and -l file enquiries and explicitly do not document -s
naddy [Mon, 26 Oct 2015 20:44:00 +0000 (20:44 +0000)]
document the -p and -l file enquiries and explicitly do not document -s
with/ok schwarze@

9 years agoThe hostname variable is not used since r1.99. Remove it and use
rpe [Mon, 26 Oct 2015 19:24:04 +0000 (19:24 +0000)]
The hostname variable is not used since r1.99. Remove it and use
stripcom() output directly with the hostname command.

OK deraadt@ krw@

9 years agoupdate regress suite for pledge
semarie [Mon, 26 Oct 2015 18:52:19 +0000 (18:52 +0000)]
update regress suite for pledge

9 years agoadd tests for whitespace surrounding properties
jasper [Mon, 26 Oct 2015 18:09:32 +0000 (18:09 +0000)]
add tests for whitespace surrounding properties

9 years agoDon't reject properties with no whitespace after the colon; it's perfectly
jasper [Mon, 26 Oct 2015 18:08:44 +0000 (18:08 +0000)]
Don't reject properties with no whitespace after the colon; it's perfectly
valid to have a line like 'Requires:requiree'.

Confirmed with fd.o and this fixes using the libczmq pc file

9 years agotweak previous;
jmc [Mon, 26 Oct 2015 18:05:25 +0000 (18:05 +0000)]
tweak previous;

9 years agono more TMPDIR;
jmc [Mon, 26 Oct 2015 17:56:20 +0000 (17:56 +0000)]
no more TMPDIR;

9 years agoPut repquota in line with other utilities: you either wants list everyting,
zhuk [Mon, 26 Oct 2015 17:55:32 +0000 (17:55 +0000)]
Put repquota in line with other utilities: you either wants list everyting,
effectively using -a, or you specify filesystems one-by-one. Doing both
resulted in a funny error messages, so just don't allow that silly behaviour.

okay millert@

9 years agoAdd ppoll() to "stdio"
deraadt [Mon, 26 Oct 2015 17:52:19 +0000 (17:52 +0000)]
Add ppoll() to "stdio"

9 years agoUse axf's hashsize as a block size in the authenticated encryption routine.
mikeb [Mon, 26 Oct 2015 17:22:50 +0000 (17:22 +0000)]
Use axf's hashsize as a block size in the authenticated encryption routine.
No change for GCM, however upcoming changes will rely on this.

9 years agoSome extra logging of where keys are actually going.
nicm [Mon, 26 Oct 2015 17:17:06 +0000 (17:17 +0000)]
Some extra logging of where keys are actually going.

9 years agoRather than setpassent(1) for the lifetime of the program, use two smaller
deraadt [Mon, 26 Oct 2015 16:57:13 +0000 (16:57 +0000)]
Rather than setpassent(1) for the lifetime of the program, use two smaller
windows of setpassent(1) + entpwent()
ok tedu millert

9 years agoFix makemap(8) for values containing a '#'.
sunil [Mon, 26 Oct 2015 16:38:06 +0000 (16:38 +0000)]
Fix makemap(8) for values containing a '#'.

Ok millert@ gilles@

9 years agoGive dhclient(8) the ability to use option 119, a.k.a. "Domain
krw [Mon, 26 Oct 2015 16:32:33 +0000 (16:32 +0000)]
Give dhclient(8) the ability to use option 119, a.k.a. "Domain
Search" if supplied by the server.

Requested by a few. Original diff from Ray Lai via tech@.

Tested & ok claudio@

9 years agoRemove the #define Strfoo() s_strfoo() redirection and move everything
naddy [Mon, 26 Oct 2015 16:31:09 +0000 (16:31 +0000)]
Remove the #define Strfoo() s_strfoo() redirection and move everything
directly to Strfoo().  Purely mechanical.  ok deraadt@

9 years agoClean up cruft made visible by the NLS unifdefing:
naddy [Mon, 26 Oct 2015 16:27:04 +0000 (16:27 +0000)]
Clean up cruft made visible by the NLS unifdefing:
* remove setlocale() calls
* remove write-only variable AsciiOnly
* remove now unused string constants STRLANG, STRLC_CTYPE
* remove hardcoded support for ISO8859-1

ok millert@

9 years agoRemove TMPDIR support, it is not really useful in crontab.
millert [Mon, 26 Oct 2015 15:50:06 +0000 (15:50 +0000)]
Remove TMPDIR support, it is not really useful in crontab.
OK deraadt@

9 years agoUse rt_ifidx rather than rt_ifp.
mpi [Mon, 26 Oct 2015 15:49:13 +0000 (15:49 +0000)]
Use rt_ifidx rather than rt_ifp.

ok bluhm@

9 years agoPut off some "notyet" dust from login.c.
zhuk [Mon, 26 Oct 2015 15:29:17 +0000 (15:29 +0000)]
Put off some "notyet" dust from login.c.

okay millert@ and deraadt@

9 years agoUse SOCK_NONBLOCK and SOCK_CLOEXEC instead of fcntl() calls.
millert [Mon, 26 Oct 2015 15:16:30 +0000 (15:16 +0000)]
Use SOCK_NONBLOCK and SOCK_CLOEXEC instead of fcntl() calls.
OK guenther@

9 years agoAdd GPT editing. Based on GSOC 2014 work by Markus Muller.
krw [Mon, 26 Oct 2015 15:08:26 +0000 (15:08 +0000)]
Add GPT editing. Based on GSOC 2014 work by Markus Muller.

9 years agodon't keep the passwd database open; callers do not expect that they will
tedu [Mon, 26 Oct 2015 15:04:51 +0000 (15:04 +0000)]
don't keep the passwd database open; callers do not expect that they will
become responsible for calling endpwent.
ok deraadt

9 years agounifdef BUILTIN (unused), NLS (always set), SHORT_STRINGS (always set)
naddy [Mon, 26 Oct 2015 15:01:15 +0000 (15:01 +0000)]
unifdef BUILTIN (unused), NLS (always set), SHORT_STRINGS (always set)
and remove a few unused defines; no binary changes; ok tedu@ zhuk@

9 years ago(char *)0 -> NULL
mmcc [Mon, 26 Oct 2015 14:48:54 +0000 (14:48 +0000)]
(char *)0 -> NULL

ok tedu@

9 years agoFlesh out GPT info and tweak other verbiage to be less MBR specific.
krw [Mon, 26 Oct 2015 14:37:50 +0000 (14:37 +0000)]
Flesh out GPT info and tweak other verbiage to be less MBR specific.

9 years agoRemove some useless defines and the set_cron_uid() function.
millert [Mon, 26 Oct 2015 14:27:41 +0000 (14:27 +0000)]
Remove some useless defines and the set_cron_uid() function.
OK jung@

9 years agoLet SLIST_REMOVE invalidate the pointer in more cases.
bluhm [Mon, 26 Oct 2015 14:12:13 +0000 (14:12 +0000)]
Let SLIST_REMOVE invalidate the pointer in more cases.
OK jsing@

9 years agoRename err() to error() to prevent confusion with the stdlib function.
mmcc [Mon, 26 Oct 2015 14:08:47 +0000 (14:08 +0000)]
Rename err() to error() to prevent confusion with the stdlib function.

Discussed with jca@.

9 years agoremove the silly username cache here and use libc user_from_uid.
tedu [Mon, 26 Oct 2015 13:56:18 +0000 (13:56 +0000)]
remove the silly username cache here and use libc user_from_uid.
libc isn't (yet) any better, but it can improve with time.

9 years agoremove TMPDIR support
deraadt [Mon, 26 Oct 2015 13:12:10 +0000 (13:12 +0000)]
remove TMPDIR support

9 years agosync
deraadt [Mon, 26 Oct 2015 13:11:42 +0000 (13:11 +0000)]
sync

9 years agorip6query goes to the attic. Hopefully route6d (rip6d?) will get some
deraadt [Mon, 26 Oct 2015 13:07:13 +0000 (13:07 +0000)]
rip6query goes to the attic.  Hopefully route6d (rip6d?) will get some
love instead, prod prod.
ok claudio jca mpi

9 years agoremove TMPDIR support. ok millert
tedu [Mon, 26 Oct 2015 12:52:27 +0000 (12:52 +0000)]
remove TMPDIR support. ok millert

9 years agoprint uptime too. ok deraadt
tedu [Mon, 26 Oct 2015 12:44:22 +0000 (12:44 +0000)]
print uptime too. ok deraadt

9 years agoone second amnesty for timeouts so we don't spin with short timeouts
tedu [Mon, 26 Oct 2015 12:24:48 +0000 (12:24 +0000)]
one second amnesty for timeouts so we don't spin with short timeouts

9 years agoset listening sockets to nonblocking, then handle as many incoming requests
tedu [Mon, 26 Oct 2015 12:23:40 +0000 (12:23 +0000)]
set listening sockets to nonblocking, then handle as many incoming requests
as we can in the loop instead of keventing per request.

9 years agodns check needs to be done on the kernel address after copyin
tedu [Mon, 26 Oct 2015 12:17:03 +0000 (12:17 +0000)]
dns check needs to be done on the kernel address after copyin

9 years agoAllow NET_RT_IFLIST in pledge "dns" as well
deraadt [Mon, 26 Oct 2015 12:13:45 +0000 (12:13 +0000)]
Allow NET_RT_IFLIST in pledge "dns" as well

9 years agoKernel got fixed we no longer need to check if rtm_pid is 0 to filter out
claudio [Mon, 26 Oct 2015 11:46:25 +0000 (11:46 +0000)]
Kernel got fixed we no longer need to check if rtm_pid is 0 to filter out
route messages that are not from us.

9 years agoIf the system call is entirely unpermitted, code will be 0, and there is
deraadt [Mon, 26 Oct 2015 11:17:52 +0000 (11:17 +0000)]
If the system call is entirely unpermitted, code will be 0, and there is
no pledge to recommend.

9 years agoadd setreuid/setregid to "id"
deraadt [Mon, 26 Oct 2015 11:11:45 +0000 (11:11 +0000)]
add setreuid/setregid to "id"

9 years agostop saving a pidfile; ok jung zhuk
deraadt [Mon, 26 Oct 2015 11:10:53 +0000 (11:10 +0000)]
stop saving a pidfile; ok jung zhuk

9 years agofix PATH_INFO for / requests
jung [Mon, 26 Oct 2015 11:03:29 +0000 (11:03 +0000)]
fix PATH_INFO for / requests

diff from Denis Fondras

ok reyk

9 years agoNothing in base uses native language support anymore. Remove NLS
bluhm [Mon, 26 Oct 2015 10:43:42 +0000 (10:43 +0000)]
Nothing in base uses native language support anymore.  Remove NLS
support from the makefiles.
OK naddy@

9 years agoremove libutil from dpadd too
tedu [Mon, 26 Oct 2015 10:34:18 +0000 (10:34 +0000)]
remove libutil from dpadd too

9 years agoremove libutil from dpadd too
tedu [Mon, 26 Oct 2015 10:32:56 +0000 (10:32 +0000)]
remove libutil from dpadd too

9 years agolast consumer in base of pidfile()...
deraadt [Mon, 26 Oct 2015 10:12:46 +0000 (10:12 +0000)]
last consumer in base of pidfile()...

9 years agoremove util.h include and -lutil after pidfile removal
jung [Mon, 26 Oct 2015 10:08:14 +0000 (10:08 +0000)]
remove util.h include and -lutil after pidfile removal

ok deraadt

9 years agoStop writing a pidfile
deraadt [Mon, 26 Oct 2015 09:58:18 +0000 (09:58 +0000)]
Stop writing a pidfile
ok benno jung

9 years agostop using pidfile()
deraadt [Mon, 26 Oct 2015 09:57:55 +0000 (09:57 +0000)]
stop using pidfile()
ok benno jung jca

9 years agoremove unneeded pidfile() from smtpd
jung [Mon, 26 Oct 2015 09:56:01 +0000 (09:56 +0000)]
remove unneeded pidfile() from smtpd

ok gilles

9 years agoSync "ifconfig create" interface list with ifconfig -C output.
jsg [Mon, 26 Oct 2015 09:34:50 +0000 (09:34 +0000)]
Sync "ifconfig create" interface list with ifconfig -C output.
Adds pair, svlan, tap and vxlan.

9 years agoavoid a potential double free
jsg [Mon, 26 Oct 2015 09:22:03 +0000 (09:22 +0000)]
avoid a potential double free
ok gilles@

9 years agoAdd autoport to netinet6 regress tests
vgross [Mon, 26 Oct 2015 08:06:51 +0000 (08:06 +0000)]
Add autoport to netinet6 regress tests

9 years agoAdd regress test on local route insertions
vgross [Mon, 26 Oct 2015 08:04:10 +0000 (08:04 +0000)]
Add regress test on local route insertions

9 years agochange some pledge_fail() error/code
semarie [Mon, 26 Oct 2015 07:44:43 +0000 (07:44 +0000)]
change some pledge_fail() error/code

- 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@

9 years agomake pledge_check(), used for syscall check with pledge, returns an error and
semarie [Mon, 26 Oct 2015 07:24:20 +0000 (07:24 +0000)]
make pledge_check(), used for syscall check with pledge, returns an error and
provide the required pledge request for pledge_fail().

ok deraadt@

9 years agoUsing realm for bsdauth is misleading. It is currently unusable.
yasuoka [Mon, 26 Oct 2015 06:44:40 +0000 (06:44 +0000)]
Using realm for bsdauth is misleading.  It is currently unusable.

9 years agotemporary unhook regress/sys/kern/pledge from regress
semarie [Mon, 26 Oct 2015 05:28:37 +0000 (05:28 +0000)]
temporary unhook regress/sys/kern/pledge from regress

9 years agoFix typo certopt->certopts in shell variable. This would cause the test to
dtucker [Mon, 26 Oct 2015 02:50:58 +0000 (02:50 +0000)]
Fix typo certopt->certopts in shell variable.  This would cause the test to
hang at a host key prompt if you have an A or CNAME for "proxy" in your local
domain.

9 years agoCast isdigit()'s argument to unsigned char.
mmcc [Mon, 26 Oct 2015 02:33:07 +0000 (02:33 +0000)]
Cast isdigit()'s argument to unsigned char.

ok guenther@

9 years agoadjust macro usage to the usual conventions
schwarze [Mon, 26 Oct 2015 00:49:34 +0000 (00:49 +0000)]
adjust macro usage to the usual conventions

9 years agoPartial revert of r1.79, "np" handling is a bit trickier than expected.
jca [Mon, 26 Oct 2015 00:37:44 +0000 (00:37 +0000)]
Partial revert of r1.79, "np" handling is a bit trickier than expected.

9 years agoSet low-delay traffic class for IPv6 connections as well
jca [Mon, 26 Oct 2015 00:33:03 +0000 (00:33 +0000)]
Set low-delay traffic class for IPv6 connections as well

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@

9 years agoRename the struct pollfd array, "set" -> "pfd"
jca [Mon, 26 Oct 2015 00:25:45 +0000 (00:25 +0000)]
Rename the struct pollfd array, "set" -> "pfd"

"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.

9 years agoThose variables should be local to the functions where they are used.
jca [Mon, 26 Oct 2015 00:20:44 +0000 (00:20 +0000)]
Those variables should be local to the functions where they are used.

Gets rid of a lot of warnings with -Wshadow.  No functional change.

9 years agospace before punctuation;
jmc [Mon, 26 Oct 2015 00:15:37 +0000 (00:15 +0000)]
space before punctuation;

9 years agoKill unused variable and function.
jca [Mon, 26 Oct 2015 00:05:47 +0000 (00:05 +0000)]
Kill unused variable and function.

No functional change.

9 years agohms() returns a pointer to static storage, annotate the return type with "const"
jca [Sun, 25 Oct 2015 23:53:35 +0000 (23:53 +0000)]
hms() returns a pointer to static storage, annotate the return type with "const"

No functional change.

9 years agoCorrectly print size_t/time_t.
jca [Sun, 25 Oct 2015 23:50:23 +0000 (23:50 +0000)]
Correctly print size_t/time_t.

No functional change.

9 years agoExpand tildes in filenames passed to -i before checking whether or not the
dtucker [Sun, 25 Oct 2015 23:42:00 +0000 (23:42 +0000)]
Expand tildes in filenames passed to -i before checking whether or not the
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@

9 years agoPlug memory leak introduced in r1.15.
jca [Sun, 25 Oct 2015 23:41:50 +0000 (23:41 +0000)]
Plug memory leak introduced in r1.15.

No functional change.

9 years agoDo not prepend "exec" to the shell command run by "Match exec" in a config
dtucker [Sun, 25 Oct 2015 23:14:03 +0000 (23:14 +0000)]
Do not prepend "exec" to the shell command run by "Match exec" in a config
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@

9 years agoNo longer create /var/run/ftpd.pid in daemon mode; OK jung@ jca@
millert [Sun, 25 Oct 2015 23:10:53 +0000 (23:10 +0000)]
No longer create /var/run/ftpd.pid in daemon mode; OK jung@ jca@

9 years agoThose two functions take no parameters, thus /* ARGSUSED */ is meaningless.
jca [Sun, 25 Oct 2015 23:10:32 +0000 (23:10 +0000)]
Those two functions take no parameters, thus /* ARGSUSED */ is meaningless.

No functional change.

9 years agoSync surrounding code after reallocarray introduction.
jca [Sun, 25 Oct 2015 23:03:07 +0000 (23:03 +0000)]
Sync surrounding code after reallocarray introduction.

No functional change.

9 years agoRename allocopy() to xstrdup(), and make use of strdup(3).
jca [Sun, 25 Oct 2015 22:57:09 +0000 (22:57 +0000)]
Rename allocopy() to xstrdup(), and make use of strdup(3).

No functional change.

9 years agoKill unused ROUTE6D_CONF define.
jca [Sun, 25 Oct 2015 22:45:21 +0000 (22:45 +0000)]
Kill unused ROUTE6D_CONF define.

Since 1999 no one has found the need to write support for a config file.

9 years agoAnother pidfile(3) removal; ok benno@
jca [Sun, 25 Oct 2015 22:38:48 +0000 (22:38 +0000)]
Another pidfile(3) removal; ok benno@

9 years agoIn case of error, also log the file name we failed to open.
jca [Sun, 25 Oct 2015 22:36:17 +0000 (22:36 +0000)]
In case of error, also log the file name we failed to open.

9 years agoExtend the modifiers allowed before formats: as well as the existing
nicm [Sun, 25 Oct 2015 22:29:17 +0000 (22:29 +0000)]
Extend the modifiers allowed before formats: as well as the existing
#{=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}.

9 years agounifdef some oldness. (BSD not defined since removal of param.h)
tedu [Sun, 25 Oct 2015 22:13:39 +0000 (22:13 +0000)]
unifdef some oldness. (BSD not defined since removal of param.h)
ok jca sthen

9 years agoansify
jca [Sun, 25 Oct 2015 22:11:34 +0000 (22:11 +0000)]
ansify

9 years agounbreak tree for ramdisks without INET6
deraadt [Sun, 25 Oct 2015 21:58:04 +0000 (21:58 +0000)]
unbreak tree for ramdisks without INET6

9 years agoUnify & improve paragraphs talking about "==> file <==" headers in
zhuk [Sun, 25 Oct 2015 21:50:32 +0000 (21:50 +0000)]
Unify & improve paragraphs talking about "==> file <==" headers in
head(1) and tail(1).

Input & okay from jmc@

9 years agoRemove PIDDIR and PIDFILE missed in previous commit.
millert [Sun, 25 Oct 2015 21:36:55 +0000 (21:36 +0000)]
Remove PIDDIR and PIDFILE missed in previous commit.

9 years agosync
deraadt [Sun, 25 Oct 2015 21:36:36 +0000 (21:36 +0000)]
sync

9 years agoPut some comments in how nd6_rs_attach() works.
florian [Sun, 25 Oct 2015 21:32:16 +0000 (21:32 +0000)]
Put some comments in how nd6_rs_attach() works.
Requested by stsp

9 years agopledge "stdio inet route"; ok deraadt@
jca [Sun, 25 Oct 2015 21:31:58 +0000 (21:31 +0000)]
pledge "stdio inet route"; ok deraadt@