CVS commit: src/lib/libwrap

2021-03-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Mar 18 01:49:09 UTC 2021 Modified Files: src/lib/libwrap: hosts_access.c Log Message: simplify expression, daemon is an array can't be NULL. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24

CVS commit: src/lib/libwrap

2021-03-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Mar 18 01:49:09 UTC 2021 Modified Files: src/lib/libwrap: hosts_access.c Log Message: simplify expression, daemon is an array can't be NULL. To generate a diff of this commit: cvs rdiff -u -r1.23 -r1.24

CVS commit: src/lib/libwrap

2021-03-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Mar 13 16:46:49 UTC 2021 Modified Files: src/lib/libwrap: Makefile Log Message: record the libblocklist dependency To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libwrap/Makefile Please note that

CVS commit: src/lib/libwrap

2021-03-13 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Mar 13 16:46:49 UTC 2021 Modified Files: src/lib/libwrap: Makefile Log Message: record the libblocklist dependency To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libwrap/Makefile Please note that

CVS commit: src/lib/libwrap

2021-03-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Mar 7 20:54:42 UTC 2021 Modified Files: src/lib/libwrap: Makefile Log Message: fix missing chars To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/libwrap/Makefile Please note that diffs are not

CVS commit: src/lib/libwrap

2021-03-07 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Mar 7 20:54:42 UTC 2021 Modified Files: src/lib/libwrap: Makefile Log Message: fix missing chars To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/libwrap/Makefile Please note that diffs are not

CVS commit: src/lib/libwrap

2020-03-30 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Mon Mar 30 08:34:38 UTC 2020 Modified Files: src/lib/libwrap: hosts_access.c Log Message: PR/54992: fix hosts_access(5) to works for IPv6 linklocal address without scope-id To generate a diff of this commit: cvs rdiff -u -r1.21

CVS commit: src/lib/libwrap

2020-03-30 Thread Ryo Shimizu
Module Name:src Committed By: ryo Date: Mon Mar 30 08:34:38 UTC 2020 Modified Files: src/lib/libwrap: hosts_access.c Log Message: PR/54992: fix hosts_access(5) to works for IPv6 linklocal address without scope-id To generate a diff of this commit: cvs rdiff -u -r1.21

CVS commit: src/lib/libwrap

2019-01-24 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Jan 24 22:07:14 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: remove the new check for tlen >= PTRDIFF_MAX. the prior checks assure the condition is met and GCC7 is happy. suggested by kre. To generate a

CVS commit: src/lib/libwrap

2019-01-24 Thread matthew green
Module Name:src Committed By: mrg Date: Thu Jan 24 22:07:14 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: remove the new check for tlen >= PTRDIFF_MAX. the prior checks assure the condition is met and GCC7 is happy. suggested by kre. To generate a

CVS commit: src/lib/libwrap

2019-01-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 23 02:48:48 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: And as long as we're attempting to achieve perfection in code that is never going to be executed, let's also check for possible overflow in a sum

CVS commit: src/lib/libwrap

2019-01-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 23 02:48:48 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: And as long as we're attempting to achieve perfection in code that is never going to be executed, let's also check for possible overflow in a sum

CVS commit: src/lib/libwrap

2019-01-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 23 02:32:06 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: There's no point setting errno, it is just overwritten by err in the exit path ... this function never fails, it simply sometimes doesn't actually

CVS commit: src/lib/libwrap

2019-01-22 Thread Robert Elz
Module Name:src Committed By: kre Date: Wed Jan 23 02:32:06 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: There's no point setting errno, it is just overwritten by err in the exit path ... this function never fails, it simply sometimes doesn't actually

CVS commit: src/lib/libwrap

2019-01-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Jan 23 02:00:00 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: limit allocation to PTRDIFF_T to appease gcc-7, from mrg@ To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9

CVS commit: src/lib/libwrap

2019-01-22 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Jan 23 02:00:00 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: limit allocation to PTRDIFF_T to appease gcc-7, from mrg@ To generate a diff of this commit: cvs rdiff -u -r1.8 -r1.9

CVS commit: src/lib/libwrap

2019-01-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 14 03:30:25 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: Whitespace (indent with tabs, rather than spaces), and rearrange one line that needed wrapping so it no longer does, and is (IMO) clearer. WHile

CVS commit: src/lib/libwrap

2019-01-13 Thread Robert Elz
Module Name:src Committed By: kre Date: Mon Jan 14 03:30:25 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: Whitespace (indent with tabs, rather than spaces), and rearrange one line that needed wrapping so it no longer does, and is (IMO) clearer. WHile

CVS commit: src/lib/libwrap

2019-01-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Jan 13 06:10:34 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: Always return from expandm() with errno unaltered, so on the off chance it failed, there's still the possibility that whatever processes the result

CVS commit: src/lib/libwrap

2019-01-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Sun Jan 13 06:10:34 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: Always return from expandm() with errno unaltered, so on the off chance it failed, there's still the possibility that whatever processes the result

CVS commit: src/lib/libwrap

2019-01-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 13 01:32:51 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: check for *. integer overflow over ptrdiff. Pointed out by kre@ To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/lib/libwrap

2019-01-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sun Jan 13 01:32:51 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: check for *. integer overflow over ptrdiff. Pointed out by kre@ To generate a diff of this commit: cvs rdiff -u -r1.5 -r1.6

CVS commit: src/lib/libwrap

2019-01-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jan 12 22:14:08 UTC 2019 Modified Files: src/lib/libwrap: expandm.c expandm.h Log Message: Make expandm() return a const char * so we can do away with __UNCONST() and more importantly, so that we don't accidentally return a

CVS commit: src/lib/libwrap

2019-01-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jan 12 22:14:08 UTC 2019 Modified Files: src/lib/libwrap: expandm.c expandm.h Log Message: Make expandm() return a const char * so we can do away with __UNCONST() and more importantly, so that we don't accidentally return a

CVS commit: src/lib/libwrap

2019-01-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jan 12 21:50:29 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: Don't do %%m -> %%%m escaping, requested by gson@. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/libwrap/expandm.c

CVS commit: src/lib/libwrap

2019-01-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jan 12 21:50:29 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: Don't do %%m -> %%%m escaping, requested by gson@. To generate a diff of this commit: cvs rdiff -u -r1.3 -r1.4 src/lib/libwrap/expandm.c

CVS commit: src/lib/libwrap

2019-01-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jan 12 21:05:37 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: Return the buffer that has not been freed, so it can be later, rather than the one that already was. To generate a diff of this commit: cvs rdiff

CVS commit: src/lib/libwrap

2019-01-12 Thread Robert Elz
Module Name:src Committed By: kre Date: Sat Jan 12 21:05:37 UTC 2019 Modified Files: src/lib/libwrap: expandm.c Log Message: Return the buffer that has not been freed, so it can be later, rather than the one that already was. To generate a diff of this commit: cvs rdiff

CVS commit: src/lib/libwrap

2019-01-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jan 12 19:08:24 UTC 2019 Modified Files: src/lib/libwrap: diag.c expandm.c expandm.h Log Message: Provide an extra argument to store the returned pointer so we can use the function directly as the return format (before

CVS commit: src/lib/libwrap

2019-01-12 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Sat Jan 12 19:08:24 UTC 2019 Modified Files: src/lib/libwrap: diag.c expandm.c expandm.h Log Message: Provide an extra argument to store the returned pointer so we can use the function directly as the return format (before

CVS commit: src/lib/libwrap

2019-01-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 11 20:37:30 UTC 2019 Modified Files: src/lib/libwrap: Makefile diag.c Added Files: src/lib/libwrap: expandm.c expandm.h Log Message: Use a utility function to expand %m correctly... To generate a diff of this

CVS commit: src/lib/libwrap

2019-01-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 11 20:37:30 UTC 2019 Modified Files: src/lib/libwrap: Makefile diag.c Added Files: src/lib/libwrap: expandm.c expandm.h Log Message: Use a utility function to expand %m correctly... To generate a diff of this

Re: CVS commit: src/lib/libwrap

2019-01-11 Thread Andreas Gustafsson
Christos, I think libwrap/diag.c 1.15 will read random memory if either the tag or tcpd_context.file contains "%s". It's similar to 1.9 but lacks the code in 1.9 to escape the percent signs (using fixed-length buffers...). Kludgy as it was, 1.13 seems like the least bad version so far. --

CVS commit: src/lib/libwrap

2019-01-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 11 16:15:20 UTC 2019 Modified Files: src/lib/libwrap: diag.c Log Message: let's try one more time: prepare the format to pass to syslog instead of trying to escape %m. To generate a diff of this commit: cvs rdiff -u

CVS commit: src/lib/libwrap

2019-01-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 11 16:15:20 UTC 2019 Modified Files: src/lib/libwrap: diag.c Log Message: let's try one more time: prepare the format to pass to syslog instead of trying to escape %m. To generate a diff of this commit: cvs rdiff -u

Re: CVS commit: src/lib/libwrap

2019-01-11 Thread Valery Ushakov
On Fri, Jan 11, 2019 at 07:39:58 +0700, Robert Elz wrote: > farily easy to add, if only gcc didn't go and do printf format string > analysis and complain when it sees something it does not understand. gcc has plugin API that lets you add support for custom format languages. We use it at work

CVS commit: src/lib/libwrap

2019-01-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 11 13:05:57 UTC 2019 Modified Files: src/lib/libwrap: diag.c Log Message: instead of handling %m inline, escape it. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libwrap/diag.c Please note

CVS commit: src/lib/libwrap

2019-01-11 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Fri Jan 11 13:05:57 UTC 2019 Modified Files: src/lib/libwrap: diag.c Log Message: instead of handling %m inline, escape it. To generate a diff of this commit: cvs rdiff -u -r1.13 -r1.14 src/lib/libwrap/diag.c Please note

Re: CVS commit: src/lib/libwrap

2019-01-10 Thread Robert Elz
Date:Thu, 10 Jan 2019 20:21:52 -0500 From:chris...@zoulas.com (Christos Zoulas) Message-ID: <20190111012152.cc59917f...@rebar.astron.com> | I understand, this is why I grepped the source for %m and saw that there | was no use other than " %m\0". The point was

Re: CVS commit: src/lib/libwrap

2019-01-10 Thread Christos Zoulas
On Jan 11, 7:39am, k...@munnari.oz.au (Robert Elz) wrote: -- Subject: Re: CVS commit: src/lib/libwrap | | PR/53851: Andreas Gustafsson: libwrap prints "m" instead of errno | | Handle %m inline if needed, otherwise vasprintf strips the %m and... | | That change handles the simple

Re: CVS commit: src/lib/libwrap

2019-01-10 Thread Robert Elz
Date:Thu, 10 Jan 2019 08:53:27 -0500 From:"Christos Zoulas" Message-ID: <20190110135327.189a1f...@cvs.netbsd.org> | PR/53851: Andreas Gustafsson: libwrap prints "m" instead of errno | Handle %m inline if needed, otherwise vasprintf strips the %m and... That

CVS commit: src/lib/libwrap

2019-01-10 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Jan 10 13:53:27 UTC 2019 Modified Files: src/lib/libwrap: diag.c Log Message: PR/53851: Andreas Gustafsson: libwrap prints "m" instead of errno Handle %m inline if needed, otherwise vasprintf strips the %m and... To

CVS commit: src/lib/libwrap

2019-01-10 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Jan 10 13:53:58 UTC 2019 Modified Files: src/lib/libwrap: diag.c Log Message: delete unused variable To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/libwrap/diag.c Please note that diffs are not

CVS commit: src/lib/libwrap

2019-01-10 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Jan 10 13:53:58 UTC 2019 Modified Files: src/lib/libwrap: diag.c Log Message: delete unused variable To generate a diff of this commit: cvs rdiff -u -r1.12 -r1.13 src/lib/libwrap/diag.c Please note that diffs are not

CVS commit: src/lib/libwrap

2019-01-10 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Thu Jan 10 13:53:27 UTC 2019 Modified Files: src/lib/libwrap: diag.c Log Message: PR/53851: Andreas Gustafsson: libwrap prints "m" instead of errno Handle %m inline if needed, otherwise vasprintf strips the %m and... To

CVS commit: src/lib/libwrap

2016-03-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Mar 16 21:38:22 UTC 2016 Modified Files: src/lib/libwrap: rfc931.c Log Message: Avoid setjmp clobbering. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libwrap/rfc931.c Please note that diffs are

CVS commit: src/lib/libwrap

2016-03-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Mar 16 22:32:32 UTC 2016 Modified Files: src/lib/libwrap: rfc931.c Log Message: change static to volatile. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/lib/libwrap/rfc931.c Please note that diffs are

CVS commit: src/lib/libwrap

2016-03-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Mar 16 21:38:22 UTC 2016 Modified Files: src/lib/libwrap: rfc931.c Log Message: Avoid setjmp clobbering. To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libwrap/rfc931.c Please note that diffs are

CVS commit: src/lib/libwrap

2016-03-19 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Mar 16 22:32:32 UTC 2016 Modified Files: src/lib/libwrap: rfc931.c Log Message: change static to volatile. To generate a diff of this commit: cvs rdiff -u -r1.11 -r1.12 src/lib/libwrap/rfc931.c Please note that diffs are

CVS commit: src/lib/libwrap

2016-02-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Feb 17 19:52:20 UTC 2016 Modified Files: src/lib/libwrap: hosts_access.c Log Message: PR/50823: David Binderman: Limit scanf width To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21

CVS commit: src/lib/libwrap

2016-02-17 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Feb 17 19:52:20 UTC 2016 Modified Files: src/lib/libwrap: hosts_access.c Log Message: PR/50823: David Binderman: Limit scanf width To generate a diff of this commit: cvs rdiff -u -r1.20 -r1.21

CVS commit: src/lib/libwrap

2015-10-14 Thread Christos Zoulas
Module Name:src Committed By: christos Date: Wed Oct 14 15:54:21 UTC 2015 Modified Files: src/lib/libwrap: diag.c tcpd.h Log Message: these are syslog-like To generate a diff of this commit: cvs rdiff -u -r1.10 -r1.11 src/lib/libwrap/diag.c cvs rdiff -u -r1.14 -r1.15

CVS commit: src/lib/libwrap

2012-03-22 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Thu Mar 22 22:58:15 UTC 2012 Modified Files: src/lib/libwrap: diag.c Log Message: Format the diagnostic with vasprintf once and use plain syslog instead of messing with format strings. To generate a diff of this commit: cvs

CVS commit: src/lib/libwrap

2012-03-22 Thread Joerg Sonnenberger
Module Name:src Committed By: joerg Date: Thu Mar 22 22:58:15 UTC 2012 Modified Files: src/lib/libwrap: diag.c Log Message: Format the diagnostic with vasprintf once and use plain syslog instead of messing with format strings. To generate a diff of this commit: cvs