CVS log for src/lib/libwrap/expandm.c
Up to [cvs.NetBSD.org] / src / lib / libwrap
Request diff between arbitrary revisions
Keyword substitution: kv
Default branch: MAIN
Revision 1.13: download - view: text, markup, annotated - select for diffs
Fri Oct 4 08:37:20 2024 UTC (6 months, 2 weeks ago) by rillig
Branches: MAIN
CVS tags: HEAD
Diff to: previous 1.12: preferred, colored
Changes since revision 1.12: +5 -5
lines
libwrap: fix lint warning about "effectively discards 'const'"
lib/libwrap/expandm.c(57): warning: call to 'strstr' effectively
discards 'const' from argument [346]
No binary change.
Revision 1.12.2.2: download - view: text, markup, annotated - select for diffs
Mon Jun 10 22:05:28 2019 UTC (5 years, 10 months ago) by christos
Branches: phil-wifi
Diff to: previous 1.12.2.1: preferred, colored; branchpoint 1.12: preferred, colored; next MAIN 1.13: preferred, colored
Changes since revision 1.12.2.1: +129 -0
lines
Sync with HEAD
Revision 1.8.2.3: download - view: text, markup, annotated - select for diffs
Sat Jan 26 21:59:58 2019 UTC (6 years, 2 months ago) by pgoyette
Branches: pgoyette-compat
CVS tags: pgoyette-compat-merge-20190127
Diff to: previous 1.8.2.2: preferred, colored; branchpoint 1.8: preferred, colored; next MAIN 1.9: preferred, colored
Changes since revision 1.8.2.2: +24 -6
lines
Sync with HEAD
Revision 1.12.2.1
Thu Jan 24 22:07:14 2019 UTC (6 years, 2 months ago) by christos
Branches: phil-wifi
FILE REMOVED
Changes since revision 1.12: +0 -129
lines
file expandm.c was added on branch phil-wifi on 2019-06-10 22:05:28 +0000
Revision 1.12: download - view: text, markup, annotated - select for diffs
Thu Jan 24 22:07:14 2019 UTC (6 years, 2 months ago) by mrg
Branches: MAIN
CVS tags: phil-wifi-20200421,
phil-wifi-20200411,
phil-wifi-20200406,
phil-wifi-20191119,
phil-wifi-20190609,
pgoyette-compat-20190127,
perseant-exfatfs-base-20240630,
perseant-exfatfs-base,
perseant-exfatfs,
netbsd-9-base,
netbsd-9-4-RELEASE,
netbsd-9-3-RELEASE,
netbsd-9-2-RELEASE,
netbsd-9-1-RELEASE,
netbsd-9-0-RELEASE,
netbsd-9-0-RC2,
netbsd-9-0-RC1,
netbsd-9,
netbsd-10-base,
netbsd-10-1-RELEASE,
netbsd-10-0-RELEASE,
netbsd-10-0-RC6,
netbsd-10-0-RC5,
netbsd-10-0-RC4,
netbsd-10-0-RC3,
netbsd-10-0-RC2,
netbsd-10-0-RC1,
netbsd-10,
is-mlppp-base,
is-mlppp,
cjep_sun2x-base1,
cjep_sun2x-base,
cjep_sun2x,
cjep_staticlib_x-base1,
cjep_staticlib_x-base,
cjep_staticlib_x
Branch point for: phil-wifi
Diff to: previous 1.11: preferred, colored
Changes since revision 1.11: +2 -9
lines
remove the new check for tlen >= PTRDIFF_MAX. the prior
checks assure the condition is met and GCC7 is happy.
suggested by kre.
Revision 1.11: download - view: text, markup, annotated - select for diffs
Wed Jan 23 02:48:48 2019 UTC (6 years, 3 months ago) by kre
Branches: MAIN
Diff to: previous 1.10: preferred, colored
Changes since revision 1.10: +15 -3
lines
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 that will never be computed...
Revision 1.10: download - view: text, markup, annotated - select for diffs
Wed Jan 23 02:32:06 2019 UTC (6 years, 3 months ago) by kre
Branches: MAIN
Diff to: previous 1.9: preferred, colored
Changes since revision 1.9: +5 -6
lines
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 expand the %m and just leaves the format string
intact.
And declare variables at the head of their scope, not at some random
place in the middle of the code, whatever C allows, that is just ugly.
Revision 1.9: download - view: text, markup, annotated - select for diffs
Wed Jan 23 02:00:00 2019 UTC (6 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.8: preferred, colored
Changes since revision 1.8: +20 -6
lines
limit allocation to PTRDIFF_T to appease gcc-7, from mrg@
Revision 1.8.2.2: download - view: text, markup, annotated - select for diffs
Fri Jan 18 08:50:11 2019 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
Diff to: previous 1.8.2.1: preferred, colored; branchpoint 1.8: preferred, colored
Changes since revision 1.8.2.1: +111 -0
lines
Synch with HEAD
Revision 1.8.2.1
Mon Jan 14 03:30:25 2019 UTC (6 years, 3 months ago) by pgoyette
Branches: pgoyette-compat
FILE REMOVED
Changes since revision 1.8: +0 -111
lines
file expandm.c was added on branch pgoyette-compat on 2019-01-18 08:50:11 +0000
Revision 1.8: download - view: text, markup, annotated - select for diffs
Mon Jan 14 03:30:25 2019 UTC (6 years, 3 months ago) by kre
Branches: MAIN
CVS tags: pgoyette-compat-20190118
Branch point for: pgoyette-compat
Diff to: previous 1.7: preferred, colored
Changes since revision 1.7: +18 -19
lines
Whitespace (indent with tabs, rather than spaces), and rearrange one
line that needed wrapping so it no longer does, and is (IMO) clearer.
WHile here, note that this was created in 2019, not 2018, for the
copyright notice...
NFCI.
Revision 1.7: download - view: text, markup, annotated - select for diffs
Sun Jan 13 06:10:34 2019 UTC (6 years, 3 months ago) by kre
Branches: MAIN
Diff to: previous 1.6: preferred, colored
Changes since revision 1.6: +8 -3
lines
Always return from expandm() with errno unaltered, so on the
off chance it failed, there's still the possibility that whatever
processes the result will be able to deal with the %m that would
(presumably) be left in the format string.
And as a frill, don't call strerror() until we know we are
going to use its result (still call it only once, no matter
how many %m's are in the format string).
Revision 1.6: download - view: text, markup, annotated - select for diffs
Sun Jan 13 01:32:51 2019 UTC (6 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.5: preferred, colored
Changes since revision 1.5: +25 -2
lines
check for *. integer overflow over ptrdiff. Pointed out by kre@
Revision 1.5: download - view: text, markup, annotated - select for diffs
Sat Jan 12 22:14:08 2019 UTC (6 years, 3 months ago) by kre
Branches: MAIN
Diff to: previous 1.4: preferred, colored
Changes since revision 1.4: +4 -6
lines
Make expandm() return a const char * so we can do away with __UNCONST()
and more importantly, so that we don't accidentally return a value
that is a const char * in reality (pointer to read only string) as a
char *.
Revision 1.4: download - view: text, markup, annotated - select for diffs
Sat Jan 12 21:50:29 2019 UTC (6 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.3: preferred, colored
Changes since revision 1.3: +7 -4
lines
Don't do %%m -> %%%m escaping, requested by gson@.
Revision 1.3: download - view: text, markup, annotated - select for diffs
Sat Jan 12 21:05:37 2019 UTC (6 years, 3 months ago) by kre
Branches: MAIN
Diff to: previous 1.2: preferred, colored
Changes since revision 1.2: +3 -3
lines
Return the buffer that has not been freed, so it can be later,
rather than the one that already was.
Revision 1.2: download - view: text, markup, annotated - select for diffs
Sat Jan 12 19:08:24 2019 UTC (6 years, 3 months ago) by christos
Branches: MAIN
Diff to: previous 1.1: preferred, colored
Changes since revision 1.1: +11 -5
lines
Provide an extra argument to store the returned pointer so we can use
the function directly as the return format (before assigning it to a
variable) to appease clang.
Revision 1.1: download - view: text, markup, annotated - select for diffs
Fri Jan 11 20:37:30 2019 UTC (6 years, 3 months ago) by christos
Branches: MAIN
Use a utility function to expand %m correctly...
CVSweb <webmaster@jp.NetBSD.org>