Removing unnecessary assert from lib/libc/locale/wcscoll.c

2013-03-09 Thread Vladimir Támara Patiño
--- /usr/src53orig/lib/libc/locale/wcscoll.cSat Feb 9 14:26:52 2013 +++ wcscoll.c Sat Mar 9 22:44:07 2013 @@ -27,7 +27,6 @@ * SUCH DAMAGE. */ -#include #include /* -- Dios, gracias por tu amor infinito. -- Vladimir Támara Patiño. http://vtamara.pasosdeJesus.org/ h

Order in variables of lib/libc/locale/Makefile.inc

2013-03-09 Thread Vladimir Támara Patiño
For example lib/libc/string/Makefile.inc has values of SRCS, MAN and MLINK ordered alphabetically, making easier to know where to add new values to those variables. Trying the same with lib/libc/locale/Makefile with attached patch. -- Dios, gracias por tu amor infinito. -- Vladimir Támara Pa

gzsig: avoid endless loop on input error

2013-03-09 Thread Tobias Stoeckmann
Hi, while skipping some header sections of a *.gz file, gzsig uses the function getc without taking a possible EOF return value into account. On error, the tool should obviously stop with an error message, therefore leaving sign() or verify() with -1. Tobias Index: sign.c =

race condition in gzsig

2013-03-09 Thread Tobias Stoeckmann
Hi, there is a race condition in gzsig. It needs some fancy vector to step in, but better safe than sorry (especially if the fix is pretty cheap). The race happens between opening the input file and applying the access rights to the temporary one. If an attacker is able to replace the input fil

Re: Fix gem(4) by attaching the right PHY on PowerMac G5

2013-03-09 Thread Kirill Bychkov
On Fri, March 8, 2013 13:42, Martin Pieuchot wrote: > kirby@ reported [0] back in February that the gem(4) on his PowerMac > G5 wasn't working. Apparently the logic to determine which PHY to use > doesn't work with these machines when the firmware has powered down the > chip. At least that's what F

Re: Collation support (minimal)

2013-03-09 Thread Stefan Sperling
On Fri, Mar 08, 2013 at 08:10:23AM -0500, Vladimir Támara Patiño wrote: > > Following the advice of Stefan Sperling (see > http://marc.info/?l=openbsd-tech&m=136029207723238&w=4 ) > the attached patch is minimal to support collation in > OpenBSD-current it works with ISO-8859-1 and UTF-8 translata