Displaying 1 50 of 169,111 commits (0.018s)

OpenBSD — usr.sbin/smtpd lka_session.c

remove mailaddr_to_username(), no longer needed

suggested by jung@
Delta File
+4 -12 usr.sbin/smtpd/lka_session.c
+4 -12 1 file

OpenBSD — usr.sbin/smtpd aliases.c lka_session.c

teach aliases expansion how to deal with user+tag

ok sunil@, ok jung@

OpenBSD — regress/sbin/route Makefile

Rewrite the "netmask" rule testing the "-dst" and "-net" options
of route(8) to populate the test routing table (number 5) and use
different subnets since we're not passing the "-mpath" flags.

Breakage reported by daniel@
Delta File
+6 -10 regress/sbin/route/Makefile
+6 -10 1 file

OpenBSD — sys/dev/usb ubcmtp.c

Add support for the touchpad found on the MacBooPro12,1.

ok jcs@
Delta File
+61 -13 sys/dev/usb/ubcmtp.c
+61 -13 1 file

OpenBSD — games/wump wump.c

last but not least: add pledge for wump(6)

one more of those games which fork a pager with instructions, so first
pledge "stdio rpath proc exec", then drop to pledge "stdio" afterwards.
Delta File
+8 -1 games/wump/wump.c
+8 -1 1 file

OpenBSD — games/trek main.c

pledge "stdio rpath wpath cpath" for this one.
Delta File
+4 -1 games/trek/main.c
+4 -1 1 file

OpenBSD — games/primes primes.c

primes only needs pledge "stdio".
Delta File
+4 -1 games/primes/primes.c
+4 -1 1 file

OpenBSD — games/mille mille.c

The usual deal for a curses game with the possibility of saving a game:
pledge "stdio rpath wpath cpath tty"
Delta File
+4 -1 games/mille/mille.c
+4 -1 1 file

OpenBSD — games/grdc grdc.c

unspectacular pledge "stdio rpath tty" for grdc
Delta File
+4 -1 games/grdc/grdc.c
+4 -1 1 file

OpenBSD — games/gomoku main.c

straightforward pledge "stdio rpath wpath cpath tty" for gomoku
Delta File
+4 -1 games/gomoku/main.c
+4 -1 1 file

OpenBSD — games/fish fish.c

slightly interesting pledge for fish:

start with "stdio rpath proc exec" since it pipes instructions to a pager
afterwards "stdio" is enough
Delta File
+8 -1 games/fish/fish.c
+8 -1 1 file

OpenBSD — games/canfield/canfield canfield.c, games/canfield/cfscores cfscores.c

pledge "stdio rpath wpath cpath tty" for canfield
pledge "stdio rpath" for cfscores

made possible by Ricardo Mestre's earlier work

OpenBSD — games/bs bs.c

pledge "stdio rpath tty" for bs
Delta File
+4 -1 games/bs/bs.c
+4 -1 1 file

OpenBSD — games/boggle/boggle bog.c

pledge "stdio rpath tty" for boggle.

skip mkdict and mkindex for now, they aren't installed anyway.
Delta File
+4 -1 games/boggle/boggle/bog.c
+4 -1 1 file

OpenBSD — games/backgammon/backgammon move.c extra.c, games/backgammon/common_source subs.c fancy.c

Pledge for backgammon and teachgammon.

Both are straightforward "stdio rpath tty" programs; teachgammon
exec's backgammon at the end, so give it "exec" in addition.

While there, ANSIfy

OpenBSD — games/adventure main.c

Straightforward pledge "stdio rpath wpath cpath" for adventure.
It is possible to make it finer grained, but try to keep it
simple for now.
Delta File
+4 -1 games/adventure/main.c
+4 -1 1 file

OpenBSD — lib/libsndio mio_rmidi.c

Delta File
+2 -2 lib/libsndio/mio_rmidi.c
+2 -2 1 file

OpenBSD — sbin/ping ping.c

use ping6(8)'s engine; next step in unification
OK benno@
Delta File
+175 -121 sbin/ping/ping.c
+175 -121 1 file

OpenBSD — sbin/ping ping.c, sbin/ping6 ping6.c

Reimplement source address selection. Inspired by the previous
traceroute / traceroute6 merge. Next step in unification.
OK benno@
Delta File
+36 -34 sbin/ping6/ping6.c
+29 -23 sbin/ping/ping.c
+65 -57 2 files

OpenBSD — usr.bin/ssh ssh-keysign.c

pledge, better fatal() messages; feedback deraadt@
Delta File
+16 -7 usr.bin/ssh/ssh-keysign.c
+16 -7 1 file

OpenBSD — sys/dev/pci if_bgereg.h

Make it possible to detach bge(4).

ok deraadt@
Delta File
+5 -1 sys/dev/pci/if_bgereg.h
+5 -1 1 file

OpenBSD — usr.bin/skeyinit skeyinit.c

wrap long line
Delta File
+3 -2 usr.bin/skeyinit/skeyinit.c
+3 -2 1 file

OpenBSD — share/locale/ctype en_US.UTF-8.src

Special case SWIDTH1 for U+E000 - U+F8FF

Several fonts use this private area for glyphs

Suggested by nicm@

OpenBSD — gnu/usr.bin/perl/cpan/OpenBSD-Pledge Pledge.xs, gnu/usr.bin/perl/cpan/OpenBSD-Pledge/lib/OpenBSD Pledge.pm

OpenBSD::Pledge - perl interface to pledge(2)

okay espie@ "we should be wary" deraadt@

OpenBSD — sbin/mountd mountd.8

Include RFC number in reference
Delta File
+3 -3 sbin/mountd/mountd.8
+3 -3 1 file

OpenBSD — usr.bin/tmux tmux.1

Delete a duplicated line

ok jmc@
Delta File
+2 -3 usr.bin/tmux/tmux.1
+2 -3 1 file

OpenBSD — sys/dev/usb xhci.c uhub.c

Unconnected xhci(4) super speed ports may come up with the XHCI_PS_WRC,
indicating a warm reset has happened.  Communicate this as UPS_C_BH_PORT_RESET
to the upper layers and make uhub(4) clear this bit such that we receive
further connection status change notifications.  Make sure we only do this
for super speed (USB 3.0) hubs as high speed (USB 2.0) hubs use the same bit
for UPS_C_PORT_L1.

Make hotplugging USB 3.0 devices work on my MacBookPro12,1.

ok mpi@
Delta File
+8 -1 sys/dev/usb/xhci.c
+7 -1 sys/dev/usb/uhub.c
+15 -2 2 files

OpenBSD — sys/dev/usb uhub.c

Clear the UPS_C_PORT_RESET feature when exploring.  Apparently xhci(4) super
speed ports may have the XHCI_PS_PRC bit set after xhci(4) attaches.  Just
clearing this bit isn't enough though, since the device is already connected
and no further connection status change is signalled.  So fake one.

This makes the integrated SD card reader in the MacBookPro12,1 attach.

ok mpi@
Delta File
+7 -1 sys/dev/usb/uhub.c
+7 -1 1 file

OpenBSD — games/battlestar battlestar.6

tidy here too;
Delta File
+3 -3 games/battlestar/battlestar.6
+3 -3 1 file

OpenBSD — games/atc atc.6

adjust width list: Ds is unfortunate here;
Delta File
+2 -2 games/atc/atc.6
+2 -2 1 file

OpenBSD — sys/net route.h

Convert the simple list of multipath route entries used by ART kernels
to a SRP list.

This turns the rtable_* layer mpsafe.  We now only need to protect the
ART implementation itself.

Note that route(8) regress tests will now fail due to a supplementary
reference taken by the SRPL_INIT(9) API.

ok dlg@
Delta File
+2 -2 sys/net/route.h
+2 -2 1 file

OpenBSD — games/snake snake.6

Delta File
+5 -5 games/snake/snake.6
+5 -5 1 file

OpenBSD — games/battlestar init.c com6.c

Move score file to $HOME and add pledge "stdio rpath wpath cpath".
For high score entries, try LOGNAME, then USER, then getlogin() then
fall back to ???.

OpenBSD — games/atc log.c atc.6

Add pledge support and move score file to $HOME.

For high score entries use the same logic as in snake(6) and tetris(6):
Try LOGNAME then USER then getlogin(2) and fall back to ???.
For variety, atc(6) uses flock(2), so add a "flock" promise to the usual
"stdio rpath rpath cpath tty" for games.
Delta File
+28 -22 games/atc/log.c
+8 -3 games/atc/atc.6
+3 -6 games/atc/main.c
+1 -2 games/atc/pathnames.h
+40 -33 4 files

OpenBSD — distrib/sets/lists/base mi, distrib/sets/lists/man mi

Tedu stdethers and stdhosts from /usr/sbin, which are only used in Makefile.yp
for creating the hosts.byname, hosts.byaddr ethers.byname and ethers.byaddr YP
maps. Replace most of their functionality with sed/awk scripting directly in

Suggested by and OK deraadt@
Feedback from @semarie

OpenBSD — games/robots pathnames.h main.c

Move scorefile to $HOME.  The nice implementation of the score file
depends on getpwuid(), so add "getpw" to the rest of the required
pledges: "stdio rpath wpath cpath tty".

OpenBSD — sys/netinet6 ip6_output.c

Use if_get() rather than dereferencing rt_ifp in ip6_getpmtu().

While here fix a NULL dereference introduced by the support for
multiple rdomains.  It seems that this code path is never run...

With input from David Hill, ok florian@
Delta File
+25 -14 sys/netinet6/ip6_output.c
+25 -14 1 file

OpenBSD — sys/netinet tcp_input.c

Fix an hypotetical NULL dereference which might become true once the TCP
layer will be turned mpsafe.  We're not there yet.

Reported by David Hill, ok florian@
Delta File
+5 -9 sys/netinet/tcp_input.c
+5 -9 1 file

OpenBSD — usr.bin/skeyinit skeyinit.c

Drop pledge proc exec getpw after authenticating.
Delta File
+5 -2 usr.bin/skeyinit/skeyinit.c
+5 -2 1 file

OpenBSD — usr.bin/skeyinit skeyinit.c

Remove useless getpwnam() call after getpwuid().  Noticed by deraadt@
Delta File
+1 -4 usr.bin/skeyinit/skeyinit.c
+1 -4 1 file

OpenBSD — games/cribbage crib.c instr.c

pledge "stdio rpath tty proc exec" since instructions() might fork a pager.
actual game place takes place with "stdio tty".

OK deraadt@ on an earlier version

OpenBSD — games/snake snake.c snake.6, games/tetris scores.c tetris.6

Prefer $LOGNAME over $USER, since the latter is deprecated,
see environ(7).  Pointed out by millert@.  Fall back to getlogin(2)
before defaulting to ???.

looks good to deraadt@

OpenBSD — usr.bin/telnet sys_bsd.c

telnet: check if fd is a tty before calling tcsetattr(fd, TCSADRAIN)

ok deraadt@
Delta File
+4 -3 usr.bin/telnet/sys_bsd.c
+4 -3 1 file

OpenBSD — sbin/ping ping.c, sbin/ping6 ping6.c

Doubles are not reals. Imprecision might lead to trying to
calculate square root of a negative number. Just use 0 in this case.
Pointed out by and fix from Nathanael Rensen ( nathanael AT list DOT
polymorpheus DOT com ), thanks!
OK deraadt@

(Funnily this bug was in ping6 for many years, only discovered once I
synced ping to the ping6 implementation recently.)
Delta File
+2 -2 sbin/ping/ping.c
+2 -2 sbin/ping6/ping6.c
+4 -4 2 files

OpenBSD — regress/usr.bin/make Makefile

now that targets are dedup'd, we can fix that one too.
Delta File
+2 -1 regress/usr.bin/make/Makefile
+2 -1 1 file

OpenBSD — usr.bin/make parse.c main.c

fix duplicate targets in target list for good: split previous groupling fix
in two. Catch 22: we have to dedup targets very early so that commands get
attached correctly, but we can't figure out the grouplings heuristics until
we have all commands...

ok millert@
Delta File
+66 -27 usr.bin/make/parse.c
+2 -1 usr.bin/make/main.c
+2 -1 usr.bin/make/parse.h
+70 -29 3 files

OpenBSD — libexec/spamd grey.c

Document that the pfdev check for 63 is /dev/fd/ only contains those nodes
Delta File
+4 -1 libexec/spamd/grey.c
+4 -1 1 file

OpenBSD — usr.bin/skeyinit skeyinit.c

skeyinit needs pledge proc and exec to use BSD auth.
Delta File
+2 -2 usr.bin/skeyinit/skeyinit.c
+2 -2 1 file

OpenBSD — usr.bin/skeyinit skeyinit.c

Allow the -n flag to work in -s mode.
Delta File
+21 -18 usr.bin/skeyinit/skeyinit.c
+21 -18 1 file

OpenBSD — usr.bin/skeyinit skeyinit.c

Add missing rip() before the call to strtonum().  Otherwise, strtonum
errors out due to the newline.
Delta File
+2 -1 usr.bin/skeyinit/skeyinit.c
+2 -1 1 file