openbsd
9 years agoReset tls key and cert to NULL when duplicating a server - avoids a
reyk [Sat, 3 Jan 2015 23:54:25 +0000 (23:54 +0000)]
Reset tls key and cert to NULL when duplicating a server - avoids a
possible double free in the error path of the parser.

Found by + OK doug@

9 years agoImplement BMAC support; ports 2 & 3 work now as well.
kettenis [Sat, 3 Jan 2015 23:14:33 +0000 (23:14 +0000)]
Implement BMAC support; ports 2 & 3 work now as well.

9 years agoadd new driver uslhcom(4) USB HID based UART.
uaa [Sat, 3 Jan 2015 21:43:42 +0000 (21:43 +0000)]
add new driver uslhcom(4) USB HID based UART.

9 years agoadd new driver uslhcom(4) USB HID based UART.
uaa [Sat, 3 Jan 2015 21:24:19 +0000 (21:24 +0000)]
add new driver uslhcom(4) USB HID based UART.

9 years agoadd new driver uslhcom(4) USB HID based UART.
uaa [Sat, 3 Jan 2015 21:20:26 +0000 (21:20 +0000)]
add new driver uslhcom(4) USB HID based UART.

9 years agoSome bowels of the bus_dma code assume it is ok to perform bitwise operations
miod [Sat, 3 Jan 2015 20:44:23 +0000 (20:44 +0000)]
Some bowels of the bus_dma code assume it is ok to perform bitwise operations
with the base address of the window, which only works if its size is smaller
than the address it begins at.

Until these assumptions are carefully fixed, revert r1.9, and go back to using
only one direct map window.

9 years agoadd new driver uslhcom(4) USB HID based UART.
uaa [Sat, 3 Jan 2015 20:39:11 +0000 (20:39 +0000)]
add new driver uslhcom(4) USB HID based UART.

9 years ago(new) device driver for Silicon Labs CP2110 USB HID based UART.
uaa [Sat, 3 Jan 2015 20:22:56 +0000 (20:22 +0000)]
(new) device driver for Silicon Labs CP2110 USB HID based UART.

ok by deraadt@

9 years agoMake port 1 on the 4x1G card work. Port 2 & 3 still need some work.
kettenis [Sat, 3 Jan 2015 19:08:40 +0000 (19:08 +0000)]
Make port 1 on the 4x1G card work.  Port 2 & 3 still need some work.

9 years agoFix incorrect OPENSSL_assert() usage.
doug [Sat, 3 Jan 2015 18:07:29 +0000 (18:07 +0000)]
Fix incorrect OPENSSL_assert() usage.

Instead of asserting, return an error code for I/O errors.  This is based
on OpenSSL commit 2521fcd8527008ceb3e4748f95b0ed4e2d70cfef.  Added checks
for two calloc()s while I'm here.

ok miod@

9 years agomake it able to install quirks from normal path (with normal key) and
espie [Sat, 3 Jan 2015 17:32:43 +0000 (17:32 +0000)]
make it able to install quirks from normal path (with normal key) and
other firmware from wanted path (with fw key).

Simplify the shennanigans wrt installed repo.

9 years agoTweak previous - add a missing free in the error path.
reyk [Sat, 3 Jan 2015 16:20:31 +0000 (16:20 +0000)]
Tweak previous - add a missing free in the error path.

9 years agoFix race condition in perl's ExtUtils::MakeMaker
afresh1 [Sat, 3 Jan 2015 16:17:19 +0000 (16:17 +0000)]
Fix race condition in perl's ExtUtils::MakeMaker

Many thanks to Nathanael Rensen <nathanael at polymorpheus dot com>
for tracking it down and supplying the patch.

Has been reported upstream and the fix incorporated into a larger change
https://github.com/Perl-Toolchain-Gang/ExtUtils-MakeMaker/issues/192

9 years agoAdd support for creating a protective MBR for GPT.
jsing [Sat, 3 Jan 2015 15:50:50 +0000 (15:50 +0000)]
Add support for creating a protective MBR for GPT.

Part of a diff by Markus Mueller, which was derived from Bitrig during
Google Summer of Code, with further tweaks by me.

ok krw@ miod@

9 years agoSupport alias names and multiple listen statements per server block.
reyk [Sat, 3 Jan 2015 15:49:18 +0000 (15:49 +0000)]
Support alias names and multiple listen statements per server block.
The implementation is done in the parser by expanding each
alias/listen into an independent server configuration; this makes it
easier to handle internally without adding additional loops or
conditions.

OK florian@

9 years agoFix a potential NULL pointer access in an error message after waitpid()
schwarze [Sat, 3 Jan 2015 12:54:49 +0000 (12:54 +0000)]
Fix a potential NULL pointer access in an error message after waitpid()
failure; found using detailed information provided by Ulrich Spoerlein
<uqs at FreeBSD> about FreeBSD Coverity CID 1261304.

9 years agomove the list_cloners() prototype out of #ifndef SMALL
jsg [Sat, 3 Jan 2015 06:09:36 +0000 (06:09 +0000)]
move the list_cloners() prototype out of #ifndef SMALL
missed in rev 1.290

9 years agoCheck the return values of several reallocarray() calls. While here,
lteo [Sat, 3 Jan 2015 03:03:39 +0000 (03:03 +0000)]
Check the return values of several reallocarray() calls.  While here,
also check the return value of an adjacent malloc() call.

ok jsing@

9 years agook, landisk snapshots are out that do static PIE
deraadt [Sat, 3 Jan 2015 00:58:26 +0000 (00:58 +0000)]
ok, landisk snapshots are out that do static PIE

9 years agoGiven the excessively technical description in the old mdoc_samples(7)
schwarze [Sat, 3 Jan 2015 00:56:54 +0000 (00:56 +0000)]
Given the excessively technical description in the old mdoc_samples(7)
manual and its successor groff_mdoc(7), i always considered .Ql as
purely physical markup, but it turns out describing it better allows
to give it a semantic meaning (in-line literal display) that doesn't
contradict existing usage.  One less physical, one more semantic
macro, yay!

Found in a discussion with Steffen Nurpmeso <sdaoden at yandex dot com>.

9 years agoIdentify NCT5104D variant in dmesg. (No lm here, these are used for com and
chris [Fri, 2 Jan 2015 23:02:54 +0000 (23:02 +0000)]
Identify NCT5104D variant in dmesg. (No lm here, these are used for com and
gpio pins on SuperMicro and PC Engines.)

ok kettenis@

9 years agoFix saving dhclient lease files during installation.
rpe [Fri, 2 Jan 2015 22:38:50 +0000 (22:38 +0000)]
Fix saving dhclient lease files during installation.

OK krw@

9 years agoFix a few format string warnings, allow to build DEBUG kernel on sgi
sebastia [Fri, 2 Jan 2015 22:38:46 +0000 (22:38 +0000)]
Fix a few format string warnings, allow to build DEBUG kernel on sgi

OK miod@

9 years agothere's no need to defer the removal of the iic sensors to a task, we can
dlg [Fri, 2 Jan 2015 22:36:15 +0000 (22:36 +0000)]
there's no need to defer the removal of the iic sensors to a task, we can
just remove them directly.

tested by krw@

9 years agoFix dow and apply the usual easter egg.
miod [Fri, 2 Jan 2015 19:45:42 +0000 (19:45 +0000)]
Fix dow and apply the usual easter egg.

9 years agoBump config flags field to 32bits. Makes room for future changes -
reyk [Fri, 2 Jan 2015 19:09:52 +0000 (19:09 +0000)]
Bump config flags field to 32bits.  Makes room for future changes -
but no functional change yet.

9 years agoPFS stands for Perfect Forward Secrecy.
sobrado [Fri, 2 Jan 2015 18:28:23 +0000 (18:28 +0000)]
PFS stands for Perfect Forward Secrecy.

ok reyk@

9 years agoWhen chaining TRBs, calculate the TD Size as described in section
mpi [Fri, 2 Jan 2015 18:06:25 +0000 (18:06 +0000)]
When chaining TRBs, calculate the TD Size as described in section
4.11.2.4 instead of using one TRB per packet.  Also make sure that
it is not greater than 31.

While here be paranoid about xfer buffer crossing a 64k boundary
and use a supplementary TRB in such case.

Fix a problem with uplcom(4) on Intel xHCI reported by jasper@.

9 years agoHolds up much better under load with an IPL on the block pool.
kettenis [Fri, 2 Jan 2015 17:32:59 +0000 (17:32 +0000)]
Holds up much better under load with an IPL on the block pool.

9 years agoExplicitly set the *data member of struct ohash_info to NULL.
schwarze [Fri, 2 Jan 2015 17:01:31 +0000 (17:01 +0000)]
Explicitly set the *data member of struct ohash_info to NULL.
It is never dereferenced, but it gets copied around, which worries
static analysis tools and might also confuse human auditors.
FreeBSD Coverity CID 126129812612991261300, reported by
Pedro Giffuni and Ulrich Spörlein <pfg@ and uqs@ at FreeBSD>.

9 years agoRename the tls_connect_socket() parameter 'socket' to 's' to avoid
bluhm [Fri, 2 Jan 2015 16:38:07 +0000 (16:38 +0000)]
Rename the tls_connect_socket() parameter 'socket' to 's' to avoid
a compiler warning about shadowing a global declaration.
OK jsing@

9 years agoStill locks up under load, but otherwise fairly functional.
kettenis [Fri, 2 Jan 2015 16:20:11 +0000 (16:20 +0000)]
Still locks up under load, but otherwise fairly functional.

9 years agoFix return code of _rc_quirks().
ajacoutot [Fri, 2 Jan 2015 14:44:05 +0000 (14:44 +0000)]
Fix return code of _rc_quirks().
ok robert@

9 years agoUse SIMPLEQ for syslogd filed list instead of manual list operations.
bluhm [Fri, 2 Jan 2015 12:41:08 +0000 (12:41 +0000)]
Use SIMPLEQ for syslogd filed list instead of manual list operations.
OK dlg@

9 years agoWhen syslogd was sending via TCP, there was file descriptor leak
bluhm [Fri, 2 Jan 2015 12:30:45 +0000 (12:30 +0000)]
When syslogd was sending via TCP, there was file descriptor leak
and a use after free if it received a SIGHUP.  Call bufferevent_free()
to deactivate the callbacks and close the TCP socket.
OK jasper@ deraadt@

9 years agoReport the TT Think Time of USB2.0 Hubs.
mpi [Fri, 2 Jan 2015 11:58:32 +0000 (11:58 +0000)]
Report the TT Think Time of USB2.0 Hubs.

9 years agoRemove unused variable.
lum [Fri, 2 Jan 2015 11:43:15 +0000 (11:43 +0000)]
Remove unused variable.

9 years agoadjust date
deraadt [Fri, 2 Jan 2015 11:03:50 +0000 (11:03 +0000)]
adjust date

9 years agogive the device ref taken in vscsikqfilter to the knote, and unref
dlg [Fri, 2 Jan 2015 10:38:22 +0000 (10:38 +0000)]
give the device ref taken in vscsikqfilter to the knote, and unref
it in filt_vscsidetach.

9 years agostore all state needed to defer probe/detach events in vscsi_devevent_task.
dlg [Fri, 2 Jan 2015 10:32:21 +0000 (10:32 +0000)]
store all state needed to defer probe/detach events in vscsi_devevent_task.

9 years agoAdd a comment about the default values being duplicated in rcctl(8).
ajacoutot [Fri, 2 Jan 2015 08:03:28 +0000 (08:03 +0000)]
Add a comment about the default values being duplicated in rcctl(8).
discussed with schwarze@

9 years agoupdate currency exchange rates;
jmc [Fri, 2 Jan 2015 08:03:15 +0000 (08:03 +0000)]
update currency exchange rates;

9 years agouppercase for place names, and one "t" in british;
jmc [Fri, 2 Jan 2015 08:02:20 +0000 (08:02 +0000)]
uppercase for place names, and one "t" in british;
from carson chittom

9 years agoRemove ifdef statements for TIMES and USE_TOD; they don't do anything,
lteo [Fri, 2 Jan 2015 04:00:21 +0000 (04:00 +0000)]
Remove ifdef statements for TIMES and USE_TOD; they don't do anything,
apart from introducing a bug where the -elapsed option is not listed in
the usage output when it should be.

feedback/ok bcook@ jsing@

9 years agoAdd some additional i.MX6 board types from Bitrig.
jsg [Fri, 2 Jan 2015 01:57:33 +0000 (01:57 +0000)]
Add some additional i.MX6 board types from Bitrig.
CompuLab Utilite, SolidRun HummingBoard/CuBox-i and UDOO.

9 years agoEnable 'ifconfig -C' (list dynamic interface types) on install
krw [Thu, 1 Jan 2015 22:53:39 +0000 (22:53 +0000)]
Enable 'ifconfig -C' (list dynamic interface types) on install
media. Use this feature in install scripts to eliminate manually
maintained list of dynamic interface types.

'-C' brought to my attention by reyk@, tweaks to install script to
use -C in get_ifdevs() from rpe@.

ok rpe@ deraadt@

9 years ago"The logging of errors SHOULD be restricted to conflicting information
florian [Thu, 1 Jan 2015 20:28:27 +0000 (20:28 +0000)]
"The logging of errors SHOULD be restricted to conflicting information
that causes hosts to switch from one value to another with each
received advertisement." (RFC 4861)

Receiving of RAs on non-advertising interfaces is not a conflicting
information; don't log it.

"Mike." (the.lists AT mgm51 DOT com) reported that this
leads to excessive logging with certain cable providers in 2013.
Recently reported again by Aaron Riekenberg (aaron.riekenberg AT gmail
DOT com). Thanks!

OK bluhm@

9 years agoTest that syslogd sending over TCP does not leak a file descriptor
bluhm [Thu, 1 Jan 2015 19:58:48 +0000 (19:58 +0000)]
Test that syslogd sending over TCP does not leak a file descriptor
when it receives a SIGHUP.

9 years agoInline the .cpsetup pseudo-statement in rcrt0 to avoid saving the "old" gp
miod [Thu, 1 Jan 2015 19:43:10 +0000 (19:43 +0000)]
Inline the .cpsetup pseudo-statement in rcrt0 to avoid saving the "old" gp
value, which we have no use for. ok kettenis@

9 years agoFix a buffer overrun triggered by a trailing backslash at EOF in
schwarze [Thu, 1 Jan 2015 19:28:29 +0000 (19:28 +0000)]
Fix a buffer overrun triggered by a trailing backslash at EOF in
an unclosed conditional body.  If the memory contained the byte
sequence "\}" after the end of the buffer before the next NUL, this
could even write beyond the end of the buffer, specifically '&' to
the location of the '}'.  Found by jsg@ with afl.

9 years agoFix a read buffer overrun triggered by trailing \s- or trailing \s+
schwarze [Thu, 1 Jan 2015 18:10:09 +0000 (18:10 +0000)]
Fix a read buffer overrun triggered by trailing \s- or trailing \s+
without the required subsequent argument; found by jsg@ with afl.

9 years agoKNF; no binary change
florian [Thu, 1 Jan 2015 16:31:59 +0000 (16:31 +0000)]
KNF; no binary change

9 years agosync
deraadt [Thu, 1 Jan 2015 15:52:43 +0000 (15:52 +0000)]
sync

9 years agomove to 5.7-beta
deraadt [Thu, 1 Jan 2015 15:50:27 +0000 (15:50 +0000)]
move to 5.7-beta

9 years agoDon't dereference NULL pointers when formatting missing denominators,
schwarze [Thu, 1 Jan 2015 15:34:43 +0000 (15:34 +0000)]
Don't dereference NULL pointers when formatting missing denominators,
subscripts, superscripts, or "from" or "to" arguments.
Found by jsg@ with afl.

9 years agoMerge error page changes from httpd: send Content-Length:, change
reyk [Thu, 1 Jan 2015 14:54:06 +0000 (14:54 +0000)]
Merge error page changes from httpd: send Content-Length:, change
Date: from asctime to the preferred HTTP/1.1 format, and use the
popular "Comic Sans" style (can be changed in the configuration).

9 years agoProvide option types for binary AND, binary OR and silently discarding an
jsing [Thu, 1 Jan 2015 14:28:00 +0000 (14:28 +0000)]
Provide option types for binary AND, binary OR and silently discarding an
option.

9 years agoUse the recommended HTML5 doctype in error pages.
reyk [Thu, 1 Jan 2015 14:21:06 +0000 (14:21 +0000)]
Use the recommended HTML5 doctype in error pages.

OK validator.w3.org (This document was successfully checked as HTML5!)

9 years agoUse the HTML5 doctype for error and auto index pages because it is
reyk [Thu, 1 Jan 2015 14:15:02 +0000 (14:15 +0000)]
Use the HTML5 doctype for error and auto index pages because it is
shorter, newer, and the recommendation.  From James Jerkins.

Exclude the charset for now because it is not explicitly handled by httpd.

OK validator.w3.org (This document was successfully checked as HTML5!)

9 years agoConvert the openssl(1) enc command to the new option parsing and usage.
jsing [Thu, 1 Jan 2015 13:55:03 +0000 (13:55 +0000)]
Convert the openssl(1) enc command to the new option parsing and usage.

With input from doug@

9 years agoRevert previous; tls_accept_socket() was intentionally undocumented
schwarze [Thu, 1 Jan 2015 13:30:52 +0000 (13:30 +0000)]
Revert previous; tls_accept_socket() was intentionally undocumented
because the API design isn't fully settled.
Requested by jsing@ and tedu@.

9 years agoIf man(1) only has one single argument, always interpret it as a name,
schwarze [Thu, 1 Jan 2015 13:18:23 +0000 (13:18 +0000)]
If man(1) only has one single argument, always interpret it as a name,
never as a section.  Who would have thought that people call their
manual pages 7z(1), 9c(1), 9p(1), and 9p(3)...
Patch from Sebastien Marie <semarie dash openbsd at latrappe dot fr>.

9 years agoactivate eqn(7) tests
schwarze [Thu, 1 Jan 2015 13:00:36 +0000 (13:00 +0000)]
activate eqn(7) tests

9 years agoeqn(7) tests
schwarze [Thu, 1 Jan 2015 12:53:46 +0000 (12:53 +0000)]
eqn(7) tests

9 years agoDrop redundant FUNCS_ONLY.
ajacoutot [Thu, 1 Jan 2015 09:44:20 +0000 (09:44 +0000)]
Drop redundant FUNCS_ONLY.

9 years agoThe roff(7) language is Turing-complete, even the part implemented
schwarze [Thu, 1 Jan 2015 09:06:39 +0000 (09:06 +0000)]
The roff(7) language is Turing-complete, even the part implemented
in mandoc(1).  So practice some recursive programming to make sure
it doesn't get broken.

9 years agominimally document tls_accept_socket();
schwarze [Thu, 1 Jan 2015 08:42:08 +0000 (08:42 +0000)]
minimally document tls_accept_socket();
patch from Sunil at Nimmagadda dot net

9 years agoGet rid of .Tn; from Kaspars at Bankovskis dot net, tweaked by me.
schwarze [Thu, 1 Jan 2015 07:27:34 +0000 (07:27 +0000)]
Get rid of .Tn; from Kaspars at Bankovskis dot net, tweaked by me.
While here, stop calling the Internet "the ARPA Internet".

9 years agoEven though i personally consider 8-bit-characters in filenames unwise,
schwarze [Thu, 1 Jan 2015 07:05:24 +0000 (07:05 +0000)]
Even though i personally consider 8-bit-characters in filenames unwise,
technically, filenames are not restricted to ASCII.
Patch from Kaspars at Bankovskis dot net, no opposition when shown on tech@.

9 years agoRemove an unnecessary freeaddrinfo() call, since errx() would free all
lteo [Thu, 1 Jan 2015 03:27:56 +0000 (03:27 +0000)]
Remove an unnecessary freeaddrinfo() call, since errx() would free all
the memory including the one allocated by the earlier getaddrinfo()
(pointed out by claudio@).

feedback from claudio@
ok bluhm@

9 years agoAlways drain the write buffer on pte sync. Needed for Cortex A7/A15
jsg [Thu, 1 Jan 2015 03:26:13 +0000 (03:26 +0000)]
Always drain the write buffer on pte sync.  Needed for Cortex A7/A15
which have integrated L2 so changes will get flushed to memory ASAP.
From Patrick Wildt in Bitrig via rapha@
ok miod@

9 years agoDo not take sh to STATICPIE yet. That will happen once matching
deraadt [Wed, 31 Dec 2014 23:12:36 +0000 (23:12 +0000)]
Do not take sh to STATICPIE yet.  That will happen once matching
snapshots exist.  That is why mips64 is still held up (arranged with
kettenis)

9 years agodescribe .Ql more precisely;
schwarze [Wed, 31 Dec 2014 20:41:53 +0000 (20:41 +0000)]
describe .Ql more precisely;
defect pointed out by Steffen Nurpmeso <sdaoden at yandex dot com>

9 years agorecent changes broke alignment requirements on arm.
tedu [Wed, 31 Dec 2014 16:56:55 +0000 (16:56 +0000)]
recent changes broke alignment requirements on arm.
simplify a bit more, swapping only aligned values and then using memcpy
to fill the digest. fix confirmed by jsg.
ok jsg kettenis millert

9 years agoWhen showing more than one formatted manual page, insert horizontal lines
schwarze [Wed, 31 Dec 2014 16:50:54 +0000 (16:50 +0000)]
When showing more than one formatted manual page, insert horizontal lines
between pages.  Suggested by Theo Buehler <theo at math dot ethz dot ch>.
Even in UTF-8 output mode, do not use fancy line drawing characters such
that you can easily use /^--- to skip to the next manual in your pager.

9 years agoadventure requires deterministic random for its internal data
tedu [Wed, 31 Dec 2014 15:45:57 +0000 (15:45 +0000)]
adventure requires deterministic random for its internal data
"obfuscation" scheme to work (words fail me), but we can use arc4random
for the in game fun. from theo buehler

9 years agosimplify poll() conversion. from patrick keshishian
tedu [Wed, 31 Dec 2014 15:42:08 +0000 (15:42 +0000)]
simplify poll() conversion. from patrick keshishian

9 years agocopyright_year=$(date +%Y)
jsing [Wed, 31 Dec 2014 15:32:05 +0000 (15:32 +0000)]
copyright_year=$(date +%Y)

9 years agoAdapt and add regression tests for sending syslog messages over TCP.
bluhm [Wed, 31 Dec 2014 14:05:26 +0000 (14:05 +0000)]
Adapt and add regression tests for sending syslog messages over TCP.

9 years agoUse the first host of the documentation ranges for both address
lum [Wed, 31 Dec 2014 13:56:37 +0000 (13:56 +0000)]
Use the first host of the documentation ranges for both address
families. ok jmc@ schwarze@ bluhm@

9 years agoImplement sending syslog messages over TCP streams.
bluhm [Wed, 31 Dec 2014 13:55:57 +0000 (13:55 +0000)]
Implement sending syslog messages over TCP streams.
test and OK jasper@ jca@

9 years agoadd entries for xmpp, mdns and puppet
jasper [Wed, 31 Dec 2014 11:52:22 +0000 (11:52 +0000)]
add entries for xmpp, mdns and puppet

ok aja@

9 years agoCorrect evcount_attach argument on cbus(4).
aoyama [Wed, 31 Dec 2014 11:38:27 +0000 (11:38 +0000)]
Correct evcount_attach argument on cbus(4).

The third argument of evcount_attach() should point some permanent
variable, not an automatic variable.  Now "vmstat -i" correctly prints
C-bus interrupt level number as irq, on C-bus devices.

ok miod@

9 years agoMention previously missing '/etc/apm/hibernate' action
dcoppa [Wed, 31 Dec 2014 11:37:40 +0000 (11:37 +0000)]
Mention previously missing '/etc/apm/hibernate' action

From Alessandro DE LAURENZIS <just22_dot_adl_at_gmail_dot_com>

tweak and ok jmc@

9 years agoCreate CA and certificates for TLS tests consistently. Better
bluhm [Wed, 31 Dec 2014 01:25:07 +0000 (01:25 +0000)]
Create CA and certificates for TLS tests consistently.  Better
logging of SSL errors.  Do not import unneeded Socket constants.

9 years agoUse a 1MB realloc() increment instead of an 8KB one for the config
millert [Tue, 30 Dec 2014 23:27:23 +0000 (23:27 +0000)]
Use a 1MB realloc() increment instead of an 8KB one for the config
connection buffer.  Significantly speeds up spamd-setup for lage
blacklists.  Also free the buffer when we are done with it so memory
can be returned to the system (as it can grow quite large).
OK deraadt@

9 years agoRemove some checks that will always evaluate to true. Noticed by a very
bcallah [Tue, 30 Dec 2014 22:05:32 +0000 (22:05 +0000)]
Remove some checks that will always evaluate to true. Noticed by a very
recent clang.
ok schwarze@ lum@

9 years agofix wrong paths below FILES; from Theo Buehler <theo at math dot ethz dot ch>
schwarze [Tue, 30 Dec 2014 21:34:32 +0000 (21:34 +0000)]
fix wrong paths below FILES; from Theo Buehler <theo at math dot ethz dot ch>

9 years agoAdd syslog-tls 6514/tcp to etc/services.
bluhm [Tue, 30 Dec 2014 20:50:49 +0000 (20:50 +0000)]
Add syslog-tls 6514/tcp to etc/services.
OK jasper

9 years agoMake perl use our (arc4random backed) drand48 when unseeded
afresh1 [Tue, 30 Dec 2014 20:46:45 +0000 (20:46 +0000)]
Make perl use our (arc4random backed) drand48 when unseeded
uses srand48_deterministic if a seed is provided.

seems fine millert@

9 years agoWhen a file is given on the command line, actually exists, and its name
schwarze [Tue, 30 Dec 2014 20:40:05 +0000 (20:40 +0000)]
When a file is given on the command line, actually exists, and its name
relative to the respective manual tree is longer than PATH_MAX, do not
leak the memory allocated to hold the name.  Not sure that can actually
happen, but better safe than sorry.
FreeBSD Coverity Scan CID 1261303, reported by Pedro Giffuni <pfg@>.

9 years agoself-relocating crt0 bits for sh, and enable static pie by default. With some
miod [Tue, 30 Dec 2014 19:26:38 +0000 (19:26 +0000)]
self-relocating crt0 bits for sh, and enable static pie by default. With some
archdep.h help from kettenis@

9 years agoClean up and optimize _dl_start a bit by using immediate addressing for
miod [Tue, 30 Dec 2014 18:31:21 +0000 (18:31 +0000)]
Clean up and optimize _dl_start a bit by using immediate addressing for
the constants whenever they fit, and avoiding saving and restoring
registers we don't need to preserve.

9 years agoRename a few functions name. Will help factorize some stuffs.
ajacoutot [Tue, 30 Dec 2014 15:33:53 +0000 (15:33 +0000)]
Rename a few functions name. Will help factorize some stuffs.

9 years agodo not print an empty order in case pkg_scripts is undefined
robert [Tue, 30 Dec 2014 15:31:33 +0000 (15:31 +0000)]
do not print an empty order in case pkg_scripts is undefined
ok ajacoutot@

9 years agoadd_flags() does not need any action argument.
ajacoutot [Tue, 30 Dec 2014 14:46:33 +0000 (14:46 +0000)]
add_flags() does not need any action argument.
Use the flags variable instead of hardcoding the output in preparation for
further subcommands.

9 years agoRemove redundant md memcpy.S and memmove.S lines. The mi config
jsg [Tue, 30 Dec 2014 11:45:31 +0000 (11:45 +0000)]
Remove redundant md memcpy.S and memmove.S lines.  The mi config
definitions will find the md .S files for these.

9 years agoFix handling of R_MIPS_REL32_64 relocations that reference a symbol.
kettenis [Tue, 30 Dec 2014 11:26:48 +0000 (11:26 +0000)]
Fix handling of R_MIPS_REL32_64 relocations that reference a symbol.
Fixes remaining problems with static PIE on mips64.

9 years agoadd __bounded as appropriate.
dlg [Tue, 30 Dec 2014 11:08:59 +0000 (11:08 +0000)]
add __bounded as appropriate.

looks good to deraadt@ miod@ and tedu@

9 years agoTest the weird construct of a user-defined macro starting (but not
schwarze [Tue, 30 Dec 2014 10:28:56 +0000 (10:28 +0000)]
Test the weird construct of a user-defined macro starting (but not
ending!) the definition of another user defined macro.
Mandoc already handles this correctly, make sure it won't get broken.