summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-04-28Don't use sigreturn(2) in longjmp(3). Instead use a similar approach as inMark Kettenis
_longjmp(3) but also restore the signal mask. ok deraadt@
2016-04-28Partially sync magdir/sniffer from the file distribution on astron.com,Stuart Henderson
adds pcap-ng files and some more link-layer types for pcap. Not an exact merge because they're using "use" which we don't currently support. ok nicm@ jasper@
2016-04-28Fix fsck'ing. ext2fs_dinode grew extra bits to support ext4Kenneth R Westerback
and sizeof(struct ext2fs_dinode) had to be replaced with EXT2_DINODE_SIZE() and such. ok beck@
2016-04-28Initialize the search buffer.Ingo Schwarze
Otherwise, if you called ed-search-prev-history before doing any history search but after entering at least one line into the history, the buffer could get accessed uninitialized, potentially resulting in a read buffer overrun. Segfault reported in sftp(1) via djm@ by Alf Schlichting <A dot Schlichting at lemarit dot com>, who also confirmed that the patch fixes the issue for him. OK martijn@ czarkoff@
2016-04-28Experiment on matching on the daemon_user is over. It needs more work.Antoine Jacoutot
portmap isn't happy with it as reported by naddy@
2016-04-28remove duplicate strrchr.c entry in SRCSJonathan Gray
ok deraadt@
2016-04-28Add a better implementation of iwn's update_htprot callback which usesStefan Sperling
the RXON_ASSOC command instead of clearing and restoring firmware state. This matches the behaviour of the Linux driver more closely. However, for now, keep this implementation disabled and do _nothing_ when HT protection changes. For some unknown reason, updating HT protection seems to be related to subsequent Tx errors and block ack session instablity. We'll see how this approach works out in the wild. Please report any issues. ok tb@
2016-04-28Reduce block ack gap timeout to 300 msec in order to reduce Rx latency.Stefan Sperling
This value seems to be a sweet spot. testing and ok tb@
2016-04-28memmove() the right size when expanding tree.Nicholas Marriott
2016-04-28After unlock, Update activity time after recalculate_sizes() so that theNicholas Marriott
session attached flag is correct.
2016-04-28set progname to doas so users can't create bizarro fake logsTed Unangst
2016-04-28correctly set up byteswapping so this chip works on big endian archsDavid Gwynne
this, plus the m_adj fix before, makes xge work on sparc64 from marisa emerson
2016-04-27factor out ipsec into ip6_output_ipsec_{lookup,send}(); ok mpi@, naddy@Markus Friedl
2016-04-27sysmerge(8) is the bastard child of ksh and perl, so just call it a "utility".Antoine Jacoutot
2016-04-27Revert the revert and match on the daemon_user again.Antoine Jacoutot
We'll see if something else breaks but it's the right thing to do. discussed with robert@
2016-04-27Override each and every rc.d functions to be able to match on the user.Antoine Jacoutot
2016-04-27Apply backspace check after working out the actual key, so that M-BSpaceNicholas Marriott
can work.
2016-04-27Try again with keys parsing, tidy up further and fix single Escape press.Nicholas Marriott
2016-04-27Expand and remove macro OCTEON_ETH_TAP.Visa Hankala
2016-04-27minor spacing nitMike Larkin
2016-04-27rc.firsttime -> rc.sysmerge for running sysmerge(8) after an upgrade.Antoine Jacoutot
While here, don't echo 'running sysmerge...' since that'd get us a mail each time we upgrade even when nothing changed. ok deraadt@ rpe@
2016-04-27We want to run sysmerge(8) a bit earlier in the boot process so that it has aAntoine Jacoutot
chance to update the *default* configuration of the important daemons. Factorize rc.firsttime into a run_upgrade_script() function which takes the script suffix name as an argument. i.e. run_upgrade_script sysmerge / run_upgrade_script firsttime discussed with deraadt@ ok deraadt@ rpe@
2016-04-27Remove unused arguments from rt_checkgate().Martin Pieuchot
Since the rtalloc(9) rewrite no route lookup is done in this function so there's no need for a destination or a rtable ID.
2016-04-27cidr permitted for {allow,deny}users; from lars noodenJason McIntyre
ok djm
2016-04-27unbreak pledge/generic test (breaked since ?)Sebastien Marie
it still requires a pledge(2) with wlpath enable.
2016-04-27whitespace fixes, no functional changeDavid Gwynne
largely done by marisa emerson
2016-04-27Revert matching on the daemon user for now; it breaks sndiod handling whichAntoine Jacoutot
does start as root but does not have a root master process and instead changed its uid. reported by deraadt@
2016-04-27align rx buffers so ip packets will be aligned correctly for the stackDavid Gwynne
this matters more for strict alignment archs than the ones xge currently runs on. from marisa emerson
2016-04-27tweak some command list handlingDavid Gwynne
prefix the arrays with xge_, make them const, and use nitems to iterate over them. move xge_setup_xgxs_xena to iterating over a list of commands instead of doing a long series of register writes in code. from marisa emerson, who tested on both xena and herc boards
2016-04-27Do not handle echo "`echo \"hi\"`" in POSIX mode differently than inChristian Weisgerber
traditional mode. This aligns ksh's behavior with bash and FreeBSD sh. The interpretation of the POSIX text is disputed, but it is unlikely that a change from the traditional behavior was intended. ok millert@
2016-04-27mbuf tags are in an SLIST, so we need queue.h after all.David Gwynne
found by deraadt@
2016-04-27Make netstat -W show new 802.11n counters. Requires a new kernel.Stefan Sperling
ok deraadt mpi
2016-04-27Add some stat counters for events related to 802.11n.Stefan Sperling
netstat(1) needs to be recompiled to work with new kernel. ok deraadt mpi
2016-04-27Pad struct ext2fs out to 1024 (a.k.a. ext2fs SBSIZE) bytes. SatisfiesKenneth R Westerback
assumptions in fsck_ext2fs and eliminates spurious "VALUES IN SUPER BLOCK DISAGREE WITH THOSE IN FIRST ALTERNATE" messages. Part of the problem reported to bugs@ by Lampshade. ok beck@
2016-04-27G/C DDB_REGS.Martin Pieuchot
2016-04-27Stop using DDB_REGS.Martin Pieuchot
ok dlg@
2016-04-27Simplify overengineered and buggy code that looked like as if it didIngo Schwarze
some kind of UTF-8 validation, but actually didn't, but instead, for malformed UTF-8 input, caused buffer overruns in some cases and caused skipping of valid ASCII characters in other cases. Problem originally discovered and fix OK by stsp@. eric@ agrees with the direction.
2016-04-27Remove pledge(2)'s that are called before chroot(2) since in the near futureRicardo Mestre
this will be forbidden. The remaining pledge(2) calls after chroot(2) are still kept. OK semarie@ "it is time now"
2016-04-27Remove pledge(2)'s that are called before chroot(2) since in the near futureRicardo Mestre
this will be forbidden. The remaining pledge(2) calls after chroot(2) are still kept. OK semarie@ "it is time now"
2016-04-27typo: wil -> willAntoine Jacoutot
2016-04-27Add next/previous paragraph, from J Raynor.Nicholas Marriott
2016-04-27Loads of platforms appear to have old or broken Unicode character typeNicholas Marriott
information and are missing widths for relatively common Unicode characters (so mbtowc() works, but wcwidth() fails). So if wcwidth() returns -1, assume a width of 1 instead of ignoring the character.
2016-04-27Use 'sort -V' which is actually meant to sort version numbers.Robert Peichaer
Noted by zhuk@ OK deraadt@
2016-04-27Tweak command line processing vs pledge logic to make things nicer. NoKenneth R Westerback
functional change. Prodded (a while ago) and ok (recently) deraadt@
2016-04-27minor cleanup;Jason McIntyre
2016-04-27adjust yyerror() to precede with "progname: " the error message stringGleydson Soares
OK tedu@ phessler@
2016-04-26Print tcps_noport with netstat -s like it is already done for udp.Alexander Bluhm
OK mpi@
2016-04-26Simplify next key matching and fix problems with meta and Unicode keys.Nicholas Marriott
2016-04-26Add missing "tty" promise to the pledge(2) callRicardo Mestre
This is needed since getpass(3) calls readpassphrase(3) which in turn tries to open(2) a tty in O_RDWR mode Problem reported by Kevin Chadwick <m8il1ists ! gmail.com> Cluebat stick provided by deraadt@, OK millert@
2016-04-26Remove predefined strings from libm pages.Theo Buehler
With lots of help, input and tweaks and finally ok schwarze@