openbsd
9 years agoDo not let the -m option or MANPATH with leading, trailing, or double
schwarze [Thu, 7 May 2015 12:07:29 +0000 (12:07 +0000)]
Do not let the -m option or MANPATH with leading, trailing, or double
colon override the default manpath, let them add to the default manpath.
Only override the default manpath by the -M option, by MANPATH without
leading, trailing, or double colon, or by "manpath" in man.conf(5).

Problem reported by Jan Stary <hans at stare dot cz>.
Patch OK'ed by millert@.

9 years agoStyle spacing nits.
nicm [Thu, 7 May 2015 11:42:56 +0000 (11:42 +0000)]
Style spacing nits.

9 years agoInclude the timestamp TCP option in keep alive packets as well.
mikeb [Thu, 7 May 2015 09:19:31 +0000 (09:19 +0000)]
Include the timestamp TCP option in keep alive packets as well.

According to RFC 7323 "once TSopt has been successfully negotiated,
... [it] MUST be sent in every non-<RST> segment for the duration
of the connection."  Which means that keep alives which are just
ACK packets must include that too.

Pointed out and tested by Lauri Tirkkonen <lotheac at iki ! fi>, thanks!
ok mpi

9 years agoPass a thread pointer instead of its file descriptor table to getvnode(9).
mpi [Thu, 7 May 2015 08:53:32 +0000 (08:53 +0000)]
Pass a thread pointer instead of its file descriptor table to getvnode(9).

Input and ok millert@

9 years agoarray.h can be local to window-choose.c now.
nicm [Thu, 7 May 2015 08:08:54 +0000 (08:08 +0000)]
array.h can be local to window-choose.c now.

9 years agoUse a TAILQ not array for find-window.
nicm [Thu, 7 May 2015 07:59:52 +0000 (07:59 +0000)]
Use a TAILQ not array for find-window.

9 years agoSimplify environ_push so it doesn't need the ARRAY_* functions.
nicm [Thu, 7 May 2015 07:35:31 +0000 (07:35 +0000)]
Simplify environ_push so it doesn't need the ARRAY_* functions.

9 years agoIf status line is at the top, the offset needs to be adjusted when
nicm [Thu, 7 May 2015 07:16:14 +0000 (07:16 +0000)]
If status line is at the top, the offset needs to be adjusted when
drawing pane numbers.  Based on a diff from John O'Meara.

9 years agoremove badly indented printf and it's preceeding test
jsg [Thu, 7 May 2015 02:17:16 +0000 (02:17 +0000)]
remove badly indented printf and it's preceeding test
as suggested by miod@

9 years agofix indentation
jsg [Thu, 7 May 2015 01:55:43 +0000 (01:55 +0000)]
fix indentation
ok miod@

9 years agofix indentation of a line
jsg [Thu, 7 May 2015 01:19:00 +0000 (01:19 +0000)]
fix indentation of a line
ok krw@ miod@

9 years agoadd missing braces to code under #ifdef TRM_DEBUG0
jsg [Thu, 7 May 2015 01:09:56 +0000 (01:09 +0000)]
add missing braces to code under #ifdef TRM_DEBUG0
ok krw@

9 years agoremove a surplus tab
jsg [Thu, 7 May 2015 00:16:25 +0000 (00:16 +0000)]
remove a surplus tab
from miod@

9 years agoadd missing braces
jsg [Thu, 7 May 2015 00:00:52 +0000 (00:00 +0000)]
add missing braces
ok miod@

9 years agoRemove ARRAY_* from history and expand completion to complete a) layout
nicm [Wed, 6 May 2015 23:56:46 +0000 (23:56 +0000)]
Remove ARRAY_* from history and expand completion to complete a) layout
names and b) targets beginning with -t or -s.

9 years agofix a fd leak in an error path in code under #ifdef DEBUG
jsg [Wed, 6 May 2015 23:52:49 +0000 (23:52 +0000)]
fix a fd leak in an error path in code under #ifdef DEBUG

9 years agoregen
jsg [Wed, 6 May 2015 11:26:02 +0000 (11:26 +0000)]
regen

9 years ago#include <sys/event.h> was removed from init_sysent.c but not
jsg [Wed, 6 May 2015 11:20:07 +0000 (11:20 +0000)]
#include <sys/event.h> was removed from init_sysent.c but not
syscalls.master where the file is generated from.  Fix this by removing
it from syscalls.master so it doesn't come back.

From Nicolas Bedos.

9 years agoPass a thread pointer instead of its file descriptor table to getsock(9).
mpi [Wed, 6 May 2015 08:52:17 +0000 (08:52 +0000)]
Pass a thread pointer instead of its file descriptor table to getsock(9).

Diff from Vitaliy Makkoveev.

Manpage tweak and ok millert@

9 years agouse res_hnok() to valid domain part in valid_domain()
gilles [Wed, 6 May 2015 08:37:47 +0000 (08:37 +0000)]
use res_hnok() to valid domain part in valid_domain()

ok eric@

9 years agoAdd a format window_linked which is 1 if a window has been linked
nicm [Wed, 6 May 2015 08:35:39 +0000 (08:35 +0000)]
Add a format window_linked which is 1 if a window has been linked
multiple times, also remove the default space in window_flags and use a
conditional to add it in window-status-format (this means additional
flags can be added in the option without extra spaces). From Thomas Adam
with tweaks by me.

9 years agoDocument that priority 1 is reserved for kernel use.
mpi [Wed, 6 May 2015 07:55:42 +0000 (07:55 +0000)]
Document that priority 1 is reserved for kernel use.

9 years agoDisplay thread IDs instead of the name of the process's owner when "-H"
mpi [Wed, 6 May 2015 07:53:29 +0000 (07:53 +0000)]
Display thread IDs instead of the name of the process's owner when "-H"
is used.

The rationnal is that when you're looking at threads you're generally
already filtereing by PID and this allow you to see which thread is a
pig.

Written some time ago with mikeb@

ok sthen@, krw@, guenther@

9 years agoTurn cursor off during redraw, pointed out by George Nachman.
nicm [Wed, 6 May 2015 07:52:06 +0000 (07:52 +0000)]
Turn cursor off during redraw, pointed out by George Nachman.

9 years agoClarify pseudo-terminal request behaviour and use "pseudo-terminal"
dtucker [Wed, 6 May 2015 05:45:17 +0000 (05:45 +0000)]
Clarify pseudo-terminal request behaviour and use "pseudo-terminal"
consistently.  bz#1716, ok jmc@ "I like it" deraadt@.

9 years agoBlacklist DH-GEX for specific PuTTY versions known to send non-RFC4419
dtucker [Wed, 6 May 2015 04:07:18 +0000 (04:07 +0000)]
Blacklist DH-GEX for specific PuTTY versions known to send non-RFC4419
DH-GEX messages rather than all versions of PuTTY.  According to Simon
Tatham, 0.65 and newer versions will send RFC4419 DH-GEX messages.  ok djm@

9 years agomake SWAP_KEY_GET symmetrical with SWAP_KEY_PUT by having it call
dlg [Wed, 6 May 2015 04:00:10 +0000 (04:00 +0000)]
make SWAP_KEY_GET symmetrical with SWAP_KEY_PUT by having it call
a function in uvm_swap_encrypt.c instead of doing stuff inline.

lets me remove an extern from the header too.

ok kettenis@

9 years agoput mpi's atomics back in, but with the return value of add (and therefore sub, inc...
dlg [Wed, 6 May 2015 03:30:03 +0000 (03:30 +0000)]
put mpi's atomics back in, but with the return value of add (and therefore sub, inc, and dec) fixed.

the asm read the value from memory into a register, added to it,
and then tried to write it back. after succeeding it doesnt have
to add again before returning.

this splits sub, inc, and dec off from add. sub can use the subf
opcode, and inc and dec can use the addic opcode. explicitely
identify where the modified memory is so we can avoid using "memory"
as a clobber.

ok mpi@

9 years agoAdd missing braces so this will correctly fall back to the "name"
jsg [Wed, 6 May 2015 02:36:01 +0000 (02:36 +0000)]
Add missing braces so this will correctly fall back to the "name"
property of a node if "device_type" is not present.

ok mpi@ miod@

9 years agoadd missing braces
jsg [Wed, 6 May 2015 02:19:40 +0000 (02:19 +0000)]
add missing braces
ok guenther@ miod@

9 years agoUse | when combining flags not +. Luckily in this case 1 + 2 == 1 | 2.
jsg [Wed, 6 May 2015 01:41:55 +0000 (01:41 +0000)]
Use | when combining flags not +.  Luckily in this case 1 + 2 == 1 | 2.

ok mlarkin@

9 years agoFix a memory leak in _dl_load_dep_libs()
jsg [Wed, 6 May 2015 01:03:31 +0000 (01:03 +0000)]
Fix a memory leak in _dl_load_dep_libs()
ok otto@ guenther@

9 years agoEliminate rabid semicolon
chris [Tue, 5 May 2015 23:27:47 +0000 (23:27 +0000)]
Eliminate rabid semicolon

9 years agono need to swizzle load/store addresses for 32bit values on big endian systems
jmatthew [Tue, 5 May 2015 21:24:58 +0000 (21:24 +0000)]
no need to swizzle load/store addresses for 32bit values on big endian systems

ok miod@

9 years agoUpdated fifotest.out
millert [Tue, 5 May 2015 20:18:35 +0000 (20:18 +0000)]
Updated fifotest.out

9 years agofifofs now respects the flags a descriptor was opened with.
millert [Tue, 5 May 2015 20:16:44 +0000 (20:16 +0000)]
fifofs now respects the flags a descriptor was opened with.
Also add tests for when no FD events are specified.
A few tests still don't pass which will be addressed shortly.

9 years agoNow that we have a_fflag in struct vop_poll_args we can handle
millert [Tue, 5 May 2015 20:14:10 +0000 (20:14 +0000)]
Now that we have a_fflag in struct vop_poll_args we can handle
things like POLLOUT on a read-only fd more sensibly.  Previously,
any poll events could be used regardless of the actual file flags
of the descriptor.  The new fifo_poll() is effectively a pared down
soo_poll() with slightly different semantics to batter match FIFOs.
OK and feedback from guenther@

9 years agoAI_ADDRCONFIG: skip loopback addresses, not loopback interfaces.
jca [Tue, 5 May 2015 17:08:44 +0000 (17:08 +0000)]
AI_ADDRCONFIG: skip loopback addresses, not loopback interfaces.

This is what RFC3493 suggests.  Fixes AI_ADDRCONFIG on setups where
global addresses are configured only on loopback interfaces.

Discussed with and ok eric@ gilles@

9 years agoMove the AI_ADDRCONFIG setup to its own function.
jca [Tue, 5 May 2015 16:59:08 +0000 (16:59 +0000)]
Move the AI_ADDRCONFIG setup to its own function.

Input from and ok gilles@ eric@

9 years agoRemove man page links for crypto(9) key operations; reminded by jmc@
mikeb [Tue, 5 May 2015 16:38:20 +0000 (16:38 +0000)]
Remove man page links for crypto(9) key operations; reminded by jmc@

9 years agoLess magic number
shadchin [Tue, 5 May 2015 16:27:20 +0000 (16:27 +0000)]
Less magic number

For PS/2 - status byte - bit 5:
The bit is '1' if the data on input port 60h came from the AUX port, or '0' if
the data came from the keyboard or from the keyboard controller itself.

KBS_TERR (kbd transmission error) was valid for AT-mode, but not for PS/2-mode.

ok ratchov@, miod@

9 years agoMake argument name consistent and use .Fn rather than .Nm in section 3.
schwarze [Tue, 5 May 2015 14:37:20 +0000 (14:37 +0000)]
Make argument name consistent and use .Fn rather than .Nm in section 3.
Patch from <Kaspars at Bankovskis dot net>.

9 years agoadd missing braces in _aucat_wmsg()
jsg [Tue, 5 May 2015 13:36:22 +0000 (13:36 +0000)]
add missing braces in _aucat_wmsg()

As ratchov@ notes:
"all _aucat_wmsg() callers set hdl->wtodo, so your diff can't break
things that used to work by accident."

ok ratchov@

9 years agoRemove references to APIs that don't exist anymore.
mikeb [Tue, 5 May 2015 11:17:34 +0000 (11:17 +0000)]
Remove references to APIs that don't exist anymore.
Based on a diff from Vincent Gross <dermiste@kilob.yt>, thanks!

9 years agoImplement If-Modified-Since.
florian [Tue, 5 May 2015 11:10:13 +0000 (11:10 +0000)]
Implement If-Modified-Since.
From Kyle Thompson <jmp AT giga DOT moe>.
Tweaks by me.
OK benno@

9 years agoWinSCP doesn't implement RFC4419 DH-GEX so flag it so we don't offer that
dtucker [Tue, 5 May 2015 10:17:49 +0000 (10:17 +0000)]
WinSCP doesn't implement RFC4419 DH-GEX so flag it so we don't offer that
KEX method.  ok markus@

9 years agoHuawei MU609 from Cristián Edwards.
mpi [Tue, 5 May 2015 10:17:09 +0000 (10:17 +0000)]
Huawei MU609 from Cristián Edwards.

ok dcoppa@

9 years agoregen
mpi [Tue, 5 May 2015 10:16:38 +0000 (10:16 +0000)]
regen

9 years agoHuawei MU609 from Cristián Edwards.
mpi [Tue, 5 May 2015 10:16:00 +0000 (10:16 +0000)]
Huawei MU609 from Cristián Edwards.

ok dcoppa@

9 years agoFlag user specified routes with an AF_LINK gateway as RTF_LLINFO.
mpi [Tue, 5 May 2015 09:41:43 +0000 (09:41 +0000)]
Flag user specified routes with an AF_LINK gateway as RTF_LLINFO.

This makes ND6 and ARP layers happy since they both check for this flag,
but is was redundant to provide route(8)'s "-llinfo" option when adding
a l2 route.

RTF_LLINFO is clearly redundant for userland tools, so only allow the
kernel to set it.

ok benno@, claudio@

9 years agotweak;
jmc [Tue, 5 May 2015 07:20:42 +0000 (07:20 +0000)]
tweak;

9 years agoDocument that shm_open() accepts O_CLOEXEC and O_NOFOLLOW as extensions
guenther [Tue, 5 May 2015 06:29:15 +0000 (06:29 +0000)]
Document that shm_open() accepts O_CLOEXEC and O_NOFOLLOW as extensions

ok miod@

9 years agouse the sizeof the struct not the sizeof a pointer to the struct
jsg [Tue, 5 May 2015 02:48:17 +0000 (02:48 +0000)]
use the sizeof the struct not the sizeof a pointer to the struct
in ssh_digest_start()

This file is only used if ssh is built with OPENSSL=no

ok markus@

9 years agoemul_native is only used for kernel threads which can't dump core, so
guenther [Tue, 5 May 2015 02:13:46 +0000 (02:13 +0000)]
emul_native is only used for kernel threads which can't dump core, so
delete coredump_trad(), uvm_coredump(), cpu_coredump(), struct md_coredump,
and various #includes that are superfluous.

This leaves compat_linux processes without a coredump callback.  If that
ability is desired, someone should update it to use coredump_elf32() and
verify the results...

ok kettenis@

9 years agofix a return path that lacked a rw_exit_write() call
jsg [Tue, 5 May 2015 02:01:10 +0000 (02:01 +0000)]
fix a return path that lacked a rw_exit_write() call
ok kettenis@

9 years agouse the sizeof the struct not the sizeof a pointer to the struct
jsg [Tue, 5 May 2015 01:26:37 +0000 (01:26 +0000)]
use the sizeof the struct not the sizeof a pointer to the struct
ok claudio@

9 years agofix numbers for pppx, vscsi and diskmap
jmatthew [Mon, 4 May 2015 23:48:14 +0000 (23:48 +0000)]
fix numbers for pppx, vscsi and diskmap

ok dlg@

9 years agoDefault daemon_flags are no longer in /etc/rc.conf,
schwarze [Mon, 4 May 2015 22:29:04 +0000 (22:29 +0000)]
Default daemon_flags are no longer in /etc/rc.conf,
but you can still find them in the rc.d(8) scripts.

9 years agoRemove comments about default daemon_flags; most are empty, those
schwarze [Mon, 4 May 2015 22:25:17 +0000 (22:25 +0000)]
Remove comments about default daemon_flags; most are empty, those
that aren't are redundant because they can be found in the rc.d(8)
scripts themselves, and they risk getting out of sync.
While here, sort the daemons alphabetically.
No functional change.

Triggered by a much smaller nameserver-only patch from stephan@.
OK ajacoutot@ rpe@ stephan@ and looks good to sthen@.

9 years agofix device numbering comments, no binary change
jmatthew [Mon, 4 May 2015 21:45:23 +0000 (21:45 +0000)]
fix device numbering comments, no binary change

9 years agoDocument the disklabel(8) autopartitioning feature.
rpe [Mon, 4 May 2015 20:52:02 +0000 (20:52 +0000)]
Document the disklabel(8) autopartitioning feature.
While here, reformat the documentation for the additional questions.

Feedback from schwarze@
OK henning@ on a similar diff
OK jmc@

9 years agoAdd the new template file based autopartitioning feature of disklabel(8)
rpe [Mon, 4 May 2015 19:55:26 +0000 (19:55 +0000)]
Add the new template file based autopartitioning feature of disklabel(8)
to the OpenBSD installer. It is available during unattended installation.
The template file is fetched from an url, provided as answer to a new
question in the response file:

    URL to autopartitioning template for disklabel = url

Original diff from and OK henning@
'no objection' krw@

9 years agolightly document the posix option and POSIXLY_CORRECT; will sketch out
jmc [Mon, 4 May 2015 19:34:13 +0000 (19:34 +0000)]
lightly document the posix option and POSIXLY_CORRECT; will sketch out
in more detail once i get my head round them...

9 years agoAdd SwissSign CA root certificates. Requested by robert@, ok dcoppa@ aja@ miod@
sthen [Mon, 4 May 2015 19:02:57 +0000 (19:02 +0000)]
Add SwissSign CA root certificates. Requested by robert@, ok dcoppa@ aja@ miod@

9 years agotweak previous;
jmc [Mon, 4 May 2015 14:36:26 +0000 (14:36 +0000)]
tweak previous;

9 years agosort the hardware list for urtwn, and update it's description in usb.4;
jmc [Mon, 4 May 2015 14:30:06 +0000 (14:30 +0000)]
sort the hardware list for urtwn, and update it's description in usb.4;

9 years agoadd missing .Vt macros
schwarze [Mon, 4 May 2015 14:18:13 +0000 (14:18 +0000)]
add missing .Vt macros

9 years agoUse the right index when expanding/collapsing tree, from Thomas Adam.
nicm [Mon, 4 May 2015 13:04:10 +0000 (13:04 +0000)]
Use the right index when expanding/collapsing tree, from Thomas Adam.

9 years agoFix clipping bug in float to fixed point conversion, causing
ratchov [Mon, 4 May 2015 12:51:13 +0000 (12:51 +0000)]
Fix clipping bug in float to fixed point conversion, causing
audible glitches when samples smaller than the quantification
step are converted.

9 years agourtwn(4) man page updates for RTL8188EU support.
stsp [Mon, 4 May 2015 11:48:05 +0000 (11:48 +0000)]
urtwn(4) man page updates for RTL8188EU support.
Patch by Mikhail <mp39590@gmail.com>, based on FreeBSD r264912 by kevlo.

9 years agoAdd support for RTL8188EU chips to urtwn(4).
stsp [Mon, 4 May 2015 11:46:29 +0000 (11:46 +0000)]
Add support for RTL8188EU chips to urtwn(4).

Patch by Mikhail <mp39590@gmail.com>, based on FreeBSD r264912 by kevlo.

Tested with 8188EU (TP-Link TL-WN725N). No regression on 8188CUS.
There are performance problems with 8188EU devices, cause unknown.
These will hopefully be resolved soon.

ok mpi@

9 years agoWhen writing a value to a field, don't read past the end of the source value
jmatthew [Mon, 4 May 2015 10:42:06 +0000 (10:42 +0000)]
When writing a value to a field, don't read past the end of the source value
if the field is bigger.  Fixes crashes seen on HP bc2500 blades with MP
kernels.

ok kettenis@

9 years agoUse ether_input() as default input packet handler and do the necessary
mpi [Mon, 4 May 2015 10:24:08 +0000 (10:24 +0000)]
Use ether_input() as default input packet handler and do the necessary
m_adj(9) to keep bridge(4) working while other pseudo-drivers are
converted to if_input().

Tested by mxb <mxb AT alumni DOT chalmers DOT se>, thanks!

ok henning@

9 years agoreduce the scope of things that include uvm_swap_encrypt.h.
dlg [Mon, 4 May 2015 10:21:15 +0000 (10:21 +0000)]
reduce the scope of things that include uvm_swap_encrypt.h.

uvm_meter.c needs it to route the sysctl, uvm_swap.c needs it to
use the functionality, and uvm_swap_encrypt.c needs it to for obvious
reasons. userland sysctl already includes it explicitely.

everything else doesnt and shouldnt care.

ok miod@

9 years agoDocument usbd_open_pipe(9) and friends, from Sean Levy with some tweaks.
mpi [Mon, 4 May 2015 10:12:34 +0000 (10:12 +0000)]
Document usbd_open_pipe(9) and friends, from Sean Levy with some tweaks.

9 years agoUse the size of the buffer not the pointer in a call to mem_free().
jsg [Mon, 4 May 2015 09:43:51 +0000 (09:43 +0000)]
Use the size of the buffer not the pointer in a call to mem_free().
ok miod@ and guenther@ who both pointed out this argument is unused.

9 years agouse the size of the buffer not the pointer in resume_randomness()
jsg [Mon, 4 May 2015 09:38:05 +0000 (09:38 +0000)]
use the size of the buffer not the pointer in resume_randomness()
ok djm@ miod@ deraadt@

9 years agoPrint irq informations in pckbc_set_inputhandler().
mpi [Mon, 4 May 2015 09:33:45 +0000 (09:33 +0000)]
Print irq informations in pckbc_set_inputhandler().

ok miod@

9 years agoRemove pattern length argument from match_pattern_list(),
djm [Mon, 4 May 2015 06:10:48 +0000 (06:10 +0000)]
Remove pattern length argument from match_pattern_list(),
we only ever use it for strlen(pattern).

Prompted by hanno AT hboeck.de pointing an out-of-bound read
error caused by an incorrect pattern length found using AFL
and his own tools.

ok markus@

9 years agoFix some misuse of the | operator. In particular | has higher
jsg [Mon, 4 May 2015 03:59:42 +0000 (03:59 +0000)]
Fix some misuse of the | operator.  In particular | has higher
precedence than ?:
ok guenther@ krw@ miod@

9 years agoClarify that hibernate_resume must be called with interrupts enabled.
mlarkin [Mon, 4 May 2015 02:18:05 +0000 (02:18 +0000)]
Clarify that hibernate_resume must be called with interrupts enabled.

9 years agoSpecify regression test host keys so that this test will work without
dtucker [Mon, 4 May 2015 01:51:39 +0000 (01:51 +0000)]
Specify regression test host keys so that this test will work without
SUDO (because it can't read the real host keys) and in -portable on
systems where sshd hasn't been installed yet (because the keys don't
exist yet).

9 years agoUse diff w/out -u for better portability
dtucker [Mon, 4 May 2015 01:47:53 +0000 (01:47 +0000)]
Use diff w/out -u for better portability

9 years agoPreserve times to nanosecond precision instead of just microsecond.
guenther [Sun, 3 May 2015 19:44:58 +0000 (19:44 +0000)]
Preserve times to nanosecond precision instead of just microsecond.
Prefer to set attributes by fd for regular files, and not follwing
symlinks for others.

ok brynet@ millert@

9 years agoImplement byte ranges.
florian [Sun, 3 May 2015 18:39:58 +0000 (18:39 +0000)]
Implement byte ranges.
From Sunil Nimmagadda <sunil At nimmagadda DOT net>
OK benno@

9 years agoS was misplaced in r1.89, the optarg that was removed was actually needed
gilles [Sun, 3 May 2015 18:10:58 +0000 (18:10 +0000)]
S was misplaced in r1.89, the optarg that was removed was actually needed
by R, so reintroduce it in the proper place.

spotted and diff by Sunil Nimmagadda

9 years agosmtpd enqueue -S does not take an argument, fix optstring accordingly
gilles [Sun, 3 May 2015 17:53:50 +0000 (17:53 +0000)]
smtpd enqueue -S does not take an argument, fix optstring accordingly

fix by Nathanael Rensen

9 years agoRemove subsections and start documentation of autoinstall only installer
rpe [Sun, 3 May 2015 12:53:36 +0000 (12:53 +0000)]
Remove subsections and start documentation of autoinstall only installer
features.

Feedback and OK jmc@
"Reads ok" krw@

9 years agostruct usave is unused, and eproc is gone; delete the former and
guenther [Sun, 3 May 2015 06:23:28 +0000 (06:23 +0000)]
struct usave is unused, and eproc is gone; delete the former and
stop referencing them in comments

9 years agoadd missing CISS_UNLOCK_SCRATCH/splx calls
jsg [Sun, 3 May 2015 02:10:13 +0000 (02:10 +0000)]
add missing CISS_UNLOCK_SCRATCH/splx calls
ok krw@

9 years agoMake sure we don't leak bytes from malloced memory in the padding of struct
guenther [Sun, 3 May 2015 02:02:15 +0000 (02:02 +0000)]
Make sure we don't leak bytes from malloced memory in the padding of struct
dirent.  (The memset in previous commit was both wrong and insufficient.)

problem with memset noted by brad@ and jsg@
ok millert@

9 years agoEliminate the -U flag and make usage of DUID in /etc/dumpdates the default.
guenther [Sun, 3 May 2015 01:44:34 +0000 (01:44 +0000)]
Eliminate the -U flag and make usage of DUID in /etc/dumpdates the default.
Correct old style entries so nothing has to be done for the admin.

diff from Manuel Giraud (manuel (at) ledu-giraud.fr)  Thanks!

9 years agofix build with option DEBUG
miod [Sat, 2 May 2015 20:50:08 +0000 (20:50 +0000)]
fix build with option DEBUG

9 years agoDie, damned distracting red space.
krw [Sat, 2 May 2015 18:13:42 +0000 (18:13 +0000)]
Die, damned distracting red space.

9 years agode-castify strtonum to make it consistent again.
florian [Sat, 2 May 2015 18:03:37 +0000 (18:03 +0000)]
de-castify strtonum to make it consistent again.
Pointed out by bluhm@; no object change.
OK bluhm@, krw@

9 years agoUse IPV6_MAXHLIM instead of 255; pointed out by bluhm@
florian [Sat, 2 May 2015 17:19:42 +0000 (17:19 +0000)]
Use IPV6_MAXHLIM instead of 255; pointed out by bluhm@
No object change.

9 years agoA ttl of 0 is valid. While here use MAXTTL instead of 255.
florian [Sat, 2 May 2015 17:16:07 +0000 (17:16 +0000)]
A ttl of 0 is valid. While here use MAXTTL instead of 255.
Input bluhm@, OK krw@

9 years agoadd missing splx calls
jsg [Sat, 2 May 2015 14:43:06 +0000 (14:43 +0000)]
add missing splx calls
ok krw@

9 years agoadd missing splx calls
jsg [Sat, 2 May 2015 14:33:19 +0000 (14:33 +0000)]
add missing splx calls
ok miod@

9 years agoHoist common assignments out of a series of if/if-else statements
krw [Sat, 2 May 2015 14:29:32 +0000 (14:29 +0000)]
Hoist common assignments out of a series of if/if-else statements
in get_token(). Simplifies code and shrinks future diff.

No intentional functional change.