git: netstat(1): Add some formats safety.

2018-02-02 Thread Rimvydas Jasinskas
commit 942d889d9e73d37475d373560da22e3ea9b8c773 Author: zrj Date: Tue Jan 30 21:13:11 2018 +0200 netstat(1): Add some formats safety. No functional change intended. Summary of changes: usr.bin/netstat/if.c | 4 ++-- usr.bin/netstat/inet.c | 2

git: window(1): Add some format safety.

2018-02-02 Thread Rimvydas Jasinskas
commit 1ab5e7ebcad803de80a4a1f8e68992af39a866cd Author: zrj Date: Tue Jan 30 21:50:13 2018 +0200 window(1): Add some format safety. While there, add some FALLTHROUGH too. Summary of changes: usr.bin/window/cmd.c | 2 ++

git: truncate(1): Add support for T.

2018-02-02 Thread Rimvydas Jasinskas
commit 12828dfcf5a79384e6c7b854ddfbf18525c0cb56 Author: zrj Date: Wed Jan 31 14:08:56 2018 +0200 truncate(1): Add support for T. While there, add fallthrough. Summary of changes: usr.bin/truncate/Makefile | 1 - usr.bin/truncate/truncate.1 | 13

git: sort(1): Use asprintf(3) when fixing legacy options.

2018-02-02 Thread Rimvydas Jasinskas
commit aa348a5c30541e0ea539ca1b5bb41da4f71a0b16 Author: zrj Date: Tue Jan 30 16:43:43 2018 +0200 sort(1): Use asprintf(3) when fixing legacy options. While there, make fix_obsolete_keys() static. Summary of changes: usr.bin/sort/sort.c | 25

git: tput(1): Constify.

2018-02-02 Thread Rimvydas Jasinskas
commit 72c2552a536b6fd5abfbbb7a3972aa44a2b1f152 Author: zrj Date: Wed Jan 31 14:06:19 2018 +0200 tput(1): Constify. While there, add fallthrough. Summary of changes: usr.bin/tput/tput.c | 7 --- 1 file changed, 4 insertions(+), 3 deletions(-)

git: ctags(1): Add missing fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit 28422be73ee6ea83a8962c2aaf69e8bcc189be87 Author: zrj Date: Wed Jan 31 13:16:43 2018 +0200 ctags(1): Add missing fallthrough. The -v option implies the -x. Summary of changes: usr.bin/ctags/ctags.c | 1 + 1 file changed, 1 insertion(+)

git: rs(1): Staticize.

2018-02-02 Thread Rimvydas Jasinskas
commit f6a835ba7d8ebe2ac71cffce16fa606b04d00776 Author: zrj Date: Wed Jan 31 14:02:08 2018 +0200 rs(1): Staticize. While there, add few fallthrough. Summary of changes: usr.bin/rs/rs.c | 83 +++--

git: drill(1): Use strdup() for known strings.

2018-02-02 Thread Rimvydas Jasinskas
commit 471272f59981f2dcc1aac28b61c0a06d49388615 Author: zrj Date: Tue Jan 30 18:47:48 2018 +0200 drill(1): Use strdup() for known strings. Summary of changes: contrib/ldns/drill/drill.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)

git: libarchive: Use memcpy() when constructing buffers.

2018-02-02 Thread Rimvydas Jasinskas
commit be16867234e89aa9cc5f9a12e3836f84f5268b80 Author: zrj Date: Tue Jan 30 18:25:54 2018 +0200 libarchive: Use memcpy() when constructing buffers. Avoid common mistakes that strncpy() will terminate the string. Results here are not expected to

git: ee(1): Fix ispell_op().

2018-02-02 Thread Rimvydas Jasinskas
commit 671e8f5ed8343d46cb5d24dd4936cde234473070 Author: zrj Date: Tue Jan 30 20:36:08 2018 +0200 ee(1): Fix ispell_op(). Do not pass NULL to sprintf, use tempname returned by mkstemp(3). Summary of changes: contrib/ee/ee.c | 14 +++--- 1

git: ident(1): Use NULL instead of 0.

2018-02-02 Thread Rimvydas Jasinskas
commit 3ee86c444b90b021de0df918dde5374ff009b8b0 Author: zrj Date: Wed Jan 31 13:33:32 2018 +0200 ident(1): Use NULL instead of 0. While there, add few cases of fallthrough (few need more investigation). Summary of changes: usr.bin/indent/args.c |

git: at(1): Add missing fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit d2d9ec230847c012eeccc5542e089674180e996d Author: zrj Date: Wed Jan 31 13:04:08 2018 +0200 at(1): Add missing fallthrough. While there, constify struct. Summary of changes: usr.bin/at/at.c| 3 +-- usr.bin/at/parsetime.c | 10

git: colcrt(1): Add missing fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit 76e213dffbb0953a78a445a709398e29d413a024 Author: zrj Date: Wed Jan 31 13:13:12 2018 +0200 colcrt(1): Add missing fallthrough. Summary of changes: usr.bin/colcrt/colcrt.c | 1 + 1 file changed, 1 insertion(+)

git: Normalize libcrypto and libssl DPADD variable names and adjust Makefiles.

2018-02-02 Thread Sascha Wildner
commit 117e566de58990ace6b8b62e42c845fef9987611 Author: Sascha Wildner Date: Fri Feb 2 16:24:08 2018 +0100 Normalize libcrypto and libssl DPADD variable names and adjust Makefiles. Summary of changes: Makefile.ssh.common| 2 +- bin/csh/Makefile

git: jot(1): General cleanup.

2018-02-02 Thread Rimvydas Jasinskas
commit 87225b7485fad87787ad6936bb99f77b0218d3b2 Author: zrj Date: Wed Jan 31 13:47:02 2018 +0200 jot(1): General cleanup. * staticize * constify * add fallthrough Summary of changes: usr.bin/jot/jot.c | 49

git: kgdb(1): Avoid -Wformat-truncation warning.

2018-02-02 Thread Rimvydas Jasinskas
commit f4a9d1af30d55a5829133a66aecb15b9f5f9f628 Author: zrj Date: Tue Jan 30 23:22:43 2018 +0200 kgdb(1): Avoid -Wformat-truncation warning. No functional change. Summary of changes: gnu/usr.bin/gdb/kgdb/kgdb.c | 2 +- 1 file changed, 1

git: newsyslog(8): Add missing fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit 3679fd1e22214e9f5527badab2f9e34e1b7153d2 Author: zrj Date: Fri Feb 2 22:15:20 2018 +0200 newsyslog(8): Add missing fallthrough. Summary of changes: usr.sbin/newsyslog/ptimes.c | 6 ++ 1 file changed, 6 insertions(+)

git: [fish] fix style

2018-02-02 Thread Eitan Adler
commit a7341d74f3941dc6afe8e136ea4cb800757babf4 Author: Eitan Adler Date: Fri Feb 2 20:58:31 2018 -0800 [fish] fix style Summary of changes: games/fish/fish.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

git: [fish] don't allow users to request cards they have made books for

2018-02-02 Thread Eitan Adler
commit ef388479f147d546783f2649dc60c1453178cfde Author: Eitan Adler Date: Fri Feb 2 20:51:45 2018 -0800 [fish] don't allow users to request cards they have made books for It is not technically legal to request a card you don't have in your hand, even if

git: callout.9: Remove some obsolete MLINKS.

2018-02-02 Thread Sascha Wildner
commit 4c0aed83cff951b117fafa1396de2b38a004941f Author: Sascha Wildner Date: Sat Feb 3 08:57:40 2018 +0100 callout.9: Remove some obsolete MLINKS. Summary of changes: Makefile_upgrade.inc| 2 ++ share/man/man9/Makefile | 4 +--- 2 files changed, 3 insertions(+), 3

git: ifconfig(8): Use strlcpy() to set the ifr_name field.

2018-02-02 Thread Rimvydas Jasinskas
commit 50b1feb647cb47bc892b445649a8cccb656902aa Author: zrj Date: Tue Jan 30 19:51:26 2018 +0200 ifconfig(8): Use strlcpy() to set the ifr_name field. While there, change to use IFNAMSIZ too. Summary of changes: sbin/ifconfig/af_inet6.c | 6 +++---

git: cron(8): Add some format safety.

2018-02-02 Thread Rimvydas Jasinskas
commit 49f8ed0f3ce30463475f8187bd581b0088a820b5 Author: zrj Date: Tue Jan 30 22:06:58 2018 +0200 cron(8): Add some format safety. Mostly no functional change for a common case, just to suppress the -Wformat-overflow Summary of changes:

git: dfregress(8): Suppress -Wformat-oveflow warnings.

2018-02-02 Thread Rimvydas Jasinskas
commit f9bb9655d41ca1cd37e317227f188bb68d8ebb82 Author: zrj Date: Tue Jan 30 22:30:47 2018 +0200 dfregress(8): Suppress -Wformat-oveflow warnings. Summary of changes: usr.bin/dfregress/runlist.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

git: boot/common: Add missing fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit 1bded82298de02357cda7f8e6fbd02c583bec665 Author: zrj Date: Wed Jan 31 12:56:57 2018 +0200 boot/common: Add missing fallthrough. Summary of changes: sys/boot/common/commands.c | 1 + 1 file changed, 1 insertion(+)

git: edquota(8): Use uintmax_t in cvtstoa().

2018-02-02 Thread Rimvydas Jasinskas
commit 8add6bafca336671412c8e5dbc301b29102b7801 Author: zrj Date: Tue Jan 30 22:11:21 2018 +0200 edquota(8): Use uintmax_t in cvtstoa(). Mainly to suppress the -Wformat-oveflow warnings. Summary of changes: usr.sbin/edquota/edquota.c | 12

git: chat(8): Add missing fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit cb739d4d51862f03d9ae095580464161a005a21f Author: zrj Date: Wed Jan 31 13:10:33 2018 +0200 chat(8): Add missing fallthrough. Handle them as an error. Summary of changes: usr.bin/chat/chat.c | 4 +++- 1 file changed, 3 insertions(+), 1

git: tzsetup(8): Suppress -Wformat-overflow warning.

2018-02-02 Thread Rimvydas Jasinskas
commit 76e6a84d45bea2237d123d6a28bb8dd0f7bda20a Author: zrj Date: Tue Jan 30 22:31:52 2018 +0200 tzsetup(8): Suppress -Wformat-overflow warning. Summary of changes: usr.sbin/tzsetup/tzsetup.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

git: restore(8): Add missing fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit 0335b3984a856ea4bd1f097ea29156e2df722d7c Author: zrj Date: Wed Jan 31 12:44:03 2018 +0200 restore(8): Add missing fallthrough. While there, add few hints for a compiler, panic() can return. Summary of changes: sbin/restore/interactive.c | 1

git: ppp(8): Add few fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit 23af5005692fd9db78e4771324b2046f94ce8826 Author: zrj Date: Wed Jan 31 14:29:13 2018 +0200 ppp(8): Add few fallthrough. Summary of changes: usr.sbin/ppp/command.c | 2 +- usr.sbin/ppp/datalink.c | 5 ++--- usr.sbin/ppp/fsm.c | 6 +++---

git: sicontrol(8): Add few fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit 21629b3f10654e4b5d82db3eb7b8cc3077dabf49 Author: zrj Date: Wed Jan 31 14:39:00 2018 +0200 sicontrol(8): Add few fallthrough. Summary of changes: usr.sbin/sicontrol/sicontrol.c | 3 +++ 1 file changed, 3 insertions(+)

git: sliplogin(8): Add some formats safety.

2018-02-02 Thread Rimvydas Jasinskas
commit 56e3d3dc97bafc96948d9e7bb2e67ecfcf972a94 Author: zrj Date: Tue Jan 30 22:28:21 2018 +0200 sliplogin(8): Add some formats safety. Use %hu for printing ipv4 address octects and reduce login name lenght a bit to allow for prepending path.

git: pflogd(8): Add few fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit adaa9201352c5788f9568d9b968b9e1b467c759d Author: zrj Date: Wed Jan 31 14:22:40 2018 +0200 pflogd(8): Add few fallthrough. Summary of changes: usr.sbin/pflogd/privsep.c | 3 +++ 1 file changed, 3 insertions(+)

git: ipfw(8): Add missing fallthrough.

2018-02-02 Thread Rimvydas Jasinskas
commit 0806b576112b5aa3b1a63414670931969eb6388d Author: zrj Date: Wed Jan 31 12:28:56 2018 +0200 ipfw(8): Add missing fallthrough. Summary of changes: sbin/ipfw/ipfw2.c | 1 + 1 file changed, 1 insertion(+)

git: ipfw3(8): Increase stack storage for linename.

2018-02-02 Thread Rimvydas Jasinskas
commit d0937b0e6f040095fd7a6a6713bd899ef4b9c065 Author: zrj Date: Tue Jan 30 20:10:00 2018 +0200 ipfw3(8): Increase stack storage for linename. To accommodate fully the "Line %d" format and avoid buffer overflow. Do the same some for ip6fw(8).

git: systat(8): Add some formats safety.

2018-02-02 Thread Rimvydas Jasinskas
commit 45774827cdcf97ced9b0a977ed5b61ba1b10b9c3 Author: zrj Date: Tue Jan 30 21:32:45 2018 +0200 systat(8): Add some formats safety. Mainly to suppress -Wformat-overflow Summary of changes: usr.bin/systat/iostat.c | 7 +++ 1 file changed, 3

git: route(8): Add some __attribute__((__noreturn__)).

2018-02-02 Thread Rimvydas Jasinskas
commit 9c15df6ba01abd3b5f5e75a3c57fba09a47bf345 Author: zrj Date: Wed Jan 31 12:52:47 2018 +0200 route(8): Add some __attribute__((__noreturn__)). Summary of changes: sbin/route/route.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)

git: md5(1): Untangle MD5 symbols.

2018-02-02 Thread Rimvydas Jasinskas
commit fa06a07dd1ebcfcf6a52d6296ebca3e9b8b83ea8 Author: zrj Date: Tue Jan 30 15:05:40 2018 +0200 md5(1): Untangle MD5 symbols. Prefer to use symbols from LibreSSL crypto lib to match SHA ones. Adjust the function casting to suppress the gcc80

git: libutil: Use local wrapper for exit(3).

2018-02-02 Thread Rimvydas Jasinskas
commit ee5f355d8f6619dfb181ee84411af4957857b480 Author: zrj Date: Mon Jan 29 21:20:24 2018 +0200 libutil: Use local wrapper for exit(3). Avoids -Wcast-function-type warning. Summary of changes: lib/libutil/efun.c | 8 +++- 1 file changed, 7

git: yp*: Staticise.

2018-02-02 Thread Rimvydas Jasinskas
commit b90fe988702088dfd014c7ad3c7008cbf908478c Author: zrj Date: Mon Jan 29 22:44:34 2018 +0200 yp*: Staticise. While there, make few format fixes. Summary of changes: libexec/ypxfr/yp_dbwrite.c | 1 - libexec/ypxfr/ypxfr_getmap.c| 4

git: rpc: Fix xdr_* macros and limit buffer sizes.

2018-02-02 Thread Rimvydas Jasinskas
commit 65ebff40bad065cba7ef5daf1c3c241e91d349af Author: zrj Date: Tue Jan 30 09:02:49 2018 +0200 rpc: Fix xdr_* macros and limit buffer sizes. While there, constify few things. Taken-from: FreeBSD Summary of changes: include/rpc/rpcent.h

git: libusb: Use more common "vendor product" order.

2018-02-02 Thread Rimvydas Jasinskas
commit 871df6aab25ca4c2f5fc7bf34b247d77c08bcb1c Author: zrj Date: Wed Jan 31 11:10:20 2018 +0200 libusb: Use more common "vendor product" order. While there, make sure that "vendor product" would take only half of the usb_desc field that is 96

git: libcompat: Use %hu for unsigned shorts.

2018-02-02 Thread Rimvydas Jasinskas
commit 82e1476ab66abaed1bf12ca9ba17f96479496af8 Author: zrj Date: Tue Jan 30 19:56:58 2018 +0200 libcompat: Use %hu for unsigned shorts. Summary of changes: lib/libcompat/4.3/rexec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)

git: libtcplay: Add some format safety.

2018-02-02 Thread Rimvydas Jasinskas
commit 15640dd4f52cd004b858c5b1d94340663e1d39af Author: zrj Date: Wed Jan 31 12:09:59 2018 +0200 libtcplay: Add some format safety. Limit device prints to 88 chars (should be plenty). While there, add few missing fallthrough. Summary of