summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2016-05-26Use S_ISDIR instead of doing it by hand. No binary change.Todd C. Miller
2016-05-26Rename variables to a less ambiguous name better matching their purpose.Robert Peichaer
OK krw
2016-05-26- rename rebuildlibs() to reorder_libs()Robert Peichaer
- move the info message inside the function - skip reordering if /usr/lib is on a nfs mounted filesystem - temporarily remount rw if /usr/lib is on a ro ffs file-system OK deraadt
2016-05-26Extend 0x1234 keys form to more bits so that Unicode keys work.Nicholas Marriott
2016-05-26tests for the two segfaults in backref() that were just fixedIngo Schwarze
2016-05-26Fix an oversight that caused the test program to segfault:Ingo Schwarze
Don't try to calculate strlen(NULL).
2016-05-26systematically test all combinations of REG_STARTEND, REG_NEWLINE,Ingo Schwarze
and REG_NOTBOL with line and word anchors
2016-05-26Make amaps use less kernel memory (2nd try)Stefan Kempf
The original diff would crash at least i386 and powerpc, as spotted by guenther@ The reason was an incorrect use of sizeof in amap_lookups(). Confirmation that powerpc works by mpi@ and mglocker@ "throw it in" deraadt@ Original commit message: This is achieved by grouping amap slots into chunks that are allocated on-demand by pool(9). Endless "fltamapcopy" loops because of kmem shortage should be solved now. The kmem savings are also important to later enable vmm(4) to use larged shared memory mappings for guest VM RAM. This adapts libkvm also because the amap structure layout has changed. Testing and fix of libkvm glitch in initial diff by tb@ Feedback and "time to get this in" kettenis@
2016-05-26support for testing REG_STARTEND together with REG_NOTBOLIngo Schwarze
2016-05-26fputs(3) now returns a non-negative number (as opposed to 0) on successfulTodd C. Miller
completion, just like puts(3). Found the hard way in portable code. OK jmc@
2016-05-26Just nuke environ instead of trying to unsetenv everything because thatNicholas Marriott
doesn't necessarily work if there is an entry with an empty name.
2016-05-26Improve and clarify a few bits; with input from jmc@, ok yasuoka, jmcMike Belopuhov
2016-05-26Calculate elapsed time in poll() and subtract that from the remaining timeJonathan Matthew
when restarting poll() after receiving a signal. The ruby runtime send signals to threads periodically, so without accounting for elapsed time, the timeout would never expire if we didn't get a response from a nameserver. ok deraadt@ eric@
2016-05-26Make format conversion routines return the number of framesAlexandre Ratchov
consumed from both input and output buffers. No behaviour change.
2016-05-26Change the way regexec handles REG_STARTEND combined with REG_NOTBOL.Martijn van Duren
The new code sees this combination as a continuation of string at offset pmatch[0].rm_so, instead of a new string which starts at that offset. This change fixes a search quirk in vi and is needed for upcoming fixes in ed/sed/vi. This new behaviour is also used in gnu regex. Lots of help from schwarze@ Manpage bits by schwarze@ OK schwarze@ and millert@
2016-05-26Remove superfluous loop counter to set alternate video interface since weMarcus Glocker
store the alternate video interface number already. From Patrick Keshishian, thanks!
2016-05-26Use a fat16 partition starting at sector 2048/1MB everywhere to simplifyJonathan Gray
things. OMAP can still load the first u-boot stage (MLO) from the fs and imx u-boot can load files off fat. The offset allows space for the u-boot images placed at raw offsets on imx and sunxi. discussed with kettenis
2016-05-25To prevent screwing up terminal settings when printing to theIngo Schwarze
terminal, for ASCII and UTF-8, escape bytes not forming characters and bytes forming non-printable characters with vis(3) VIS_OCTAL. For other character sets, abort printing of the current string in these cases. In particular, * let scp(1) respect the local user's LC_CTYPE locale(1); * sanitize data received from the remote host; * sanitize filenames, usernames, and similar data even locally; * take character display widths into account for the progressmeter. This is believed to be sufficient to keep the local terminal safe on OpenBSD, but bad things can still happen on other systems with state-dependent locales because many places in the code print unencoded ASCII characters into the output stream. Using feedback from djm@ and martijn@, various aspects discussed with many others. deraadt@ says it should go in now, i probably already hesitated too long
2016-05-25KNF with respect to indentation; no code changeIngo Schwarze
2016-05-25use a consistent naming for chipsets;Jason McIntyre
issue found by ross l richardson help/ok stsp
2016-05-25Fix another one-byte buffer underflow (read access only).Ingo Schwarze
This change touches code that only runs when REG_BASIC is given and the regular expression is anchored with [[:<:]] or \< _and_ uses backreferences. Simplify the logic while here, already looking at the previous character if REG_STARTEND and REG_NOTBOL are both in use, in anticipation of martijn@'s upcoming patch which will further improve REG_STARTEND. OK millert@ martijn@ Also tested by Pedro Giffuni (pfg) on FreeBSD.
2016-05-25Must extract uvm_vnode from uvm_object first before reading the vnodeStefan Kempf
Otherwise procmap interprets the uvm_vnode contents as a vnode, yielding bogus values. This should cure the "procmap: invalid address (ffffffffffffffff) == -1 vs. 656 @ ffffffffffffffff" error messages that appear sporadically. ok deraadt@
2016-05-25Avoid a use-after-free.Kenneth R Westerback
Diff from Vladimir Sotirov via tech@. Thanks! ok millert@
2016-05-25regenStefan Sperling
2016-05-25Add PCI ID for RTL8188EE. Prompted by Ross L Richardson.Stefan Sperling
2016-05-25new sentence, new line, and avoid line wrap;Jason McIntyre
2016-05-25remove knowledge of MNT_EXKERBTheo de Raadt
2016-05-25Update iwm(4) to firmware API 16 and enable RTS/CTS frame protection.Stefan Sperling
Requires new firmware! Which has been available in fw_update(1) for some time. With helpful hints from Emmanuel Grumbach and contributions from Imre Vadasz. Tested verbatim by phessler@, jasper@, gilles@. Tested as part of a larger diff by reyk@, robert@, Imre Vadasz, and Bryan Vyhmeister. Earlier version tested by many. Also passed by kettenis@ very early on.
2016-05-25remove code to display MNT_EXKERB bitTheo de Raadt
2016-05-25MNT_EXKERB bit is unusedTheo de Raadt
2016-05-25flesh out "show summary" description a bit, from julien at dhaille.com viaHenning Brauer
jmc, ok benno claudio
2016-05-25Don't warn when read or write block at cycle boundary, this mayAlexandre Ratchov
happen when remote devices are used and is not an error.
2016-05-25el_map.alt can never be NULL, delete dead codeIngo Schwarze
OK czarkoff@
2016-05-25deal with the el_errno -> read_errno cleanup, read.c rev. 1.43Ingo Schwarze
2016-05-25Saving errno in el_errno is only needed for one purpose:Ingo Schwarze
Restoring the original errno found in el_wgetc() after el_wgets() did some cleanup that may have changed errno. Improve clarity and robustness of the code by not setting and inspecting el_errno where it isn't needed; in particular, let keymacro_get() properly report read failure to read_getcmd(). Move el_errno to el_read_t because it's only used in read.c. Never set errno back to zero. Checked with a test program installing a USR1 signal handler without SA_RESTART, for the cases read_getcmd(), ed_quoted_insert(), keymacro_get(), ed_command(), and EL_EDITMODE=0. OK czarkoff@
2016-05-25Assert we're not freeing buffers we didn't allocateAlexandre Ratchov
2016-05-25Log files skipped during poll() as well, and flush the log bufferAlexandre Ratchov
right before we call poll().
2016-05-25Set initial mixer slot name to "prog" to make all slots visible inAlexandre Ratchov
audioctl and alike.
2016-05-25use -nameopt esc_msb so "NetLock Kft" cert has the non-asciiJonathan Gray
and non-utf8 bytes escaped. ok sthen@
2016-05-25Use efiboot when setting up the installed disk. If efiboot is placedJonathan Gray
in the correct path on disk u-boot will load it and search for dtb files without a script. Leave sabre lite/nitrogen with the old method as boundary devices haven't released u-boot 2015.05 yet. ok kettenis@
2016-05-24NUL-terminate argv when parsing options, following otherOkan Demirmen
implementations; fixes issue when exec*() is used for fuse_args, notably in sshfs; from Hiltjo Posthuma and reminded by ray. ok mpi@
2016-05-24Add missing strdup NULL checks; from Ray Lai.Okan Demirmen
ok mpi@ beck@ mlarkin@
2016-05-24Remove debugging ifdefs.Ingo Schwarze
I'm debugging the read module for weeks now, but these ifdefs aren't helpful. OK cpp(1).
2016-05-24Remove two sysctls which were introduced only for development of theTheo de Raadt
ptm/pty subsystem, and got left behind. ok beck
2016-05-24Drop a redundant set of FPA pool definitions.Visa Hankala
2016-05-24Reduce the size of gather buffers and allocate more of them to makeVisa Hankala
better use of memory. This should prevent gather buffer starvation on currently supported systems. Discussed with mpi@
2016-05-24Try to defragment overly long mbuf chains.Visa Hankala
ok mpi@
2016-05-24Fix previous.Visa Hankala
2016-05-24Add PCI_PRODUCT_INTEL_100SERIES_LP_THERM, suggested by kettenis@Reyk Floeter
2016-05-24USB_DISCOVER and USB_GET_STRING_DESC are no more.Martin Pieuchot
ok deraadt@