303975 |
11-Aug-2016 |
gjb |
Copy stable/11@r303970 to releng/11.0 as part of the 11.0-RELEASE cycle.
Prune svn:mergeinfo from the new branch, and rename it to RC1.
Update __FreeBSD_version.
Use the quarterly branch for the default FreeBSD.conf pkg(8) repo and the dvd1.iso packages population.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
302408 |
08-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation
|
299814 |
15-May-2016 |
ngie |
Replace malloc + memset(.., 0, ..) with calloc calls
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299811 |
15-May-2016 |
ngie |
Use strdup instead of malloc + strlcpy
Fix error messages on failure for calloc/strdup
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299810 |
15-May-2016 |
ngie |
Correct function names that failed in error messages
It should be calloc/strdup, not malloc
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299806 |
15-May-2016 |
ngie |
Bump WARNS to 6
MFC after: 1 month Sponsored by: EMC / Isilon Storage Division
|
299805 |
15-May-2016 |
ngie |
Fix up r299769
Similar to r299802, it was noted that using nitems on scalar pointers is invalid.
Use strdup instead of malloc + strlcpy (which is what the old code was doing anyhow).
MFC after: 1 week Pointyhat to: ngie Sponsored by: EMC / Isilon Storage Division
|
299803 |
15-May-2016 |
ngie |
Replace malloc + memset(.., 0, ..) with calloc calls
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299802 |
15-May-2016 |
ngie |
Fix up both r299764 and r299770
nitems was wrong too, as it was being tested against a pointer instead of a buffer on the stack.
Since the old code was just doing malloc, then strlcpy'ing the contents of the source buffer into the destination buffer, replace it all with a call to strdup..
Reported by: bde MFC after: 1 week X-MFC with: r299764, r299770 Supersized Duncecap to: ngie Sponsored by: EMC / Isilon Storage Division
|
299783 |
14-May-2016 |
ngie |
Convert tok from enum tok to int32_t in function calls
get_token(..) returns int32_t, not enum tok, and in many cases tests for items not in enum tok (e.g. '('). Make the typing consistent with get_token, which includes a domino effect of changing enum tok to int32_t.
MFC after: 2 weeks Sponsored by: EMC / Isilon Storage Division
|
299778 |
14-May-2016 |
ngie |
Use a consistent errno save/restore pattern before running strtoul
- Save errno - Set errno to 0 - Call strtoul - Test errno (optional, but many calls to strtoul did this afterwards)
Some of the code was setting errno = 0 after calling strtoul, not setting errno = 0, or setting errno to saved_errno after the call, but before the test. These all have unwanted behavioral side-effects, depending on the initial value of errno and whether or not the input to strtoul was correct or incorrect.
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299774 |
14-May-2016 |
ngie |
Do minimal work necessary to cure a -Wunused-but-set-variable warning from gcc
How errno is saved before and restored after strtoul calls needs a rethink
MFC after: 1 week Reported by: gcc 5.x Sponsored by: EMC / Isilon Storage Division
|
299770 |
14-May-2016 |
ngie |
Fix up r299764
I meant to use nitems, not sizeof(..) with the destination buffer. Using sizeof(..) on a pointer will always truncate the output in the destination buffer incorrectly
Pointyhat to: ngie MFC after: 1 week X-MFC with: r299764 Sponsored by: EMC / Isilon Storage Division
|
299769 |
14-May-2016 |
ngie |
Use the size of the destination buffer instead of the malloc size, repeated, in order to mute a -Wstrlcpy-strlcat-size warning
MFC after: 1 week Reported by: clang Sponsored by: EMC / Isilon Storage Division
|
299767 |
14-May-2016 |
ngie |
Mute sign compare warning by casting rc to u_int to match nbindings' type
rc cannot be negative -- that was already tested for earlier on in the function
MFC after: 1 week Reported by: clang, gcc Sponsored by: EMC / Isilon Storage Division
|
299766 |
14-May-2016 |
ngie |
Fix logically dead code pointed out by clang/Coverity
parse_context, parse_user_security: test for validity of results from parse_ascii(..) with by casting to int32_t and comparing to -1; comparing unsigned types to negative values will always be false.
Reported by: clang, Coverity CID: 1011432, 1011433 MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299765 |
14-May-2016 |
ngie |
Fix theoretical buffer overflow issues in snmp_oid2asn_oid
Increase the size of `string` by 1 to account for the '\0' terminator. In the event that `str` doesn't contain any non-alpha chars, i would be set to MAXSTR, and the subsequent strlcpy call would overflow by a character.
Remove unnecessary `string[i] = '\0'` -- this is already handled by strlcpy.
MFC after: 1 week Reported by: clang Sponsored by: EMC / Isilon Storage Division
|
299764 |
14-May-2016 |
ngie |
Use the size of the destination buffer, not the source buffer.
Technically this is a no-op, but mute the clang warning in case the malloc call above for fstring ever changes in the future
Reported by: clang MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299763 |
14-May-2016 |
ngie |
Mute -Wstrlcpy-strlcat-size warning by using nitems with the size of the buffer
This is a no-op as the malloc above set the size of the buffer to the size used below, but this keeps things consistent in case the malloc call changes somehow.
MFC after: 1 week Reported by: clang Sponsored by: EMC / Isilon Storage Division
|
299762 |
14-May-2016 |
ngie |
Mark snmptoolctx unused in parse_authentication(..), parse_privacy(..), parse_context(..), and parse_user_security(..).
MFC after: 1 week Reported by: clang, gcc Sponsored by: EMC / Isilon Storage Division
|
299761 |
14-May-2016 |
ngie |
parse_ascii: make count size_t to mute a -Wsign-compare issue
count is always unsigned.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299760 |
14-May-2016 |
ngie |
Sort variables in parse_ascii(..) per style(9)
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299759 |
14-May-2016 |
ngie |
Use calloc instead of memset(.., 0, ..) + malloc
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299712 |
14-May-2016 |
ngie |
Fix some trivial clang/gcc warnings in bsnmptc.c
- By definition, `enum snmp_tc` can't be false (the implied starting sequence index for the enum is 0). Don't test for it being < 0. - Staticize `struct snmp_text_conv` to mute a -Wmissing-variable-declarations warning from clang. - Remove set but unused variable, ptr, in parse_bridge_id(..) and parse_bport_id(..) to mute warning from gcc 4.9+. - Mark value and string unused in snmp_inetaddr2oct(..) and parse_inetaddr(..) as they're just stub functions.
MFC after: 1 week Sponsored by: EMC / Isilon Storage Division
|
299711 |
14-May-2016 |
ngie |
Fold two malloc + memset(.., 0, ..) calls into equivalent calloc calls
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299710 |
14-May-2016 |
ngie |
Staticize global variables only used in bsnmpimport.c to fix -Wmissing-variable-declarations warnings
MFC after: 3 weeks Reported by: clang Sponsored by: EMC / Isilon Storage Division
|
299701 |
13-May-2016 |
ngie |
Move _bsnmptools_debug extern from bsnmpmap.c to bsnmptools.h
It was used in bsnmpmap.c but was stored in bsnmptools.c; moving the extern to the header allows us to cover all of our bases for the variable, and allows _bsnmptools_debug to be used in the future elsewhere -- not just bsnmpmap.c.
MFC after: 3 weeks Sponsored by: EMC / Isilon Storage Division
|
299593 |
13-May-2016 |
truckman |
Properly compute the size argument to pass to malloc().
Reported by: Coverity CID: 1198856 MFC after: 1 week
|
298750 |
28-Apr-2016 |
ngie |
Use a better idiom for finding UTC prefixed timezones
Instead of copy-pasting the string literal for "UTC" 3 times and using strlen, use a static char[3] buffer and sizeof(..).
MFC after: 3 days X-MFC with: r298507 Submitted by: kib Sponsored by: EMC / Isilon Storage Division
|
298507 |
23-Apr-2016 |
ngie |
Fix looking for "UTC" at start of ptr by using strnmp instead of improperly unrolled equivalent
CID: 1347118 MFC after: 1 week Reported by: Coverity Sponsored by: EMC / Isilon Storage Division
|
298452 |
22-Apr-2016 |
ngie |
Don't try to free `string` (stack allocated char[])
Fix minor style with warnx call while in the neighborhood
MFC after: 1 week CID: 1009683 Reported by: Coverity, gcc 5.x Sponsored by: EMC / Isilon Storage Division
|
298451 |
22-Apr-2016 |
ngie |
Don't use `entry` after free in the "already in lists" case
Return with 0 as it isn't an error.
MFC after: 1 week CID: 1006085 Reported by: Coverity Obtained from: Isilon OneFS (part of r493633) Submitted by: Thor Steingrimsson <thor.steingrimsson@isilon.com> Sponsored by: EMC / Isilon Storage Division
|
298107 |
16-Apr-2016 |
gjb |
Merge the projects/release-pkg branch to head.
This allows packaging the base system with pkg(8), including but not limited to providing the ability to provide upstream binary update possibilities for non-tier-1 architectures.
This merge is a requirement of the 11.0-RELEASE, and as such, thank you to everyone that has tested the project branch.
Documentation in build(7) etc. is still somewhat sparse, but updates to those parts will follow.
Sponsored by: The FreeBSD Foundation
|
291307 |
25-Nov-2015 |
bdrewery |
META MODE: Prefer INSTALL=tools/install.sh to lessen the need for xinstall.host.
This both avoids some dependencies on xinstall.host and allows bootstrapping on older releases to work due to lack of at least 'install -l' support.
Sponsored by: EMC / Isilon Storage Division
|
284345 |
13-Jun-2015 |
sjg |
Add META_MODE support.
Off by default, build behaves normally. WITH_META_MODE we get auto objdir creation, the ability to start build from anywhere in the tree.
Still need to add real targets under targets/ to build packages.
Differential Revision: D2796 Reviewed by: brooks imp
|
281325 |
09-Apr-2015 |
bapt |
bsnmptools does not depends on libcrypto
|
275054 |
25-Nov-2014 |
bapt |
Convert usr.sbin to LIBADD Reduce overlinking
|
267668 |
20-Jun-2014 |
bapt |
use .Mt to mark up email addresses consistently (part2)
PR: 191174 Submitted by: Franco Fichtner <franco@lastsummer.de>
|
265420 |
06-May-2014 |
imp |
Use src.opts.mk in preference to bsd.own.mk except where we need stuff from the latter.
|
262494 |
25-Feb-2014 |
brueffer |
Rough cleanup (new sentence -> new line, grammar, spelling, mdoc). This could use more work.
PR: 187035 (in part) Submitted by: Bjorn Heidotting MFC after: 1 week
|
249375 |
11-Apr-2013 |
joel |
Minor spelling and grammar fixes.
|
245952 |
26-Jan-2013 |
pfg |
Clean some 'svn:executable' properties in the tree.
Submitted by: Christoph Mallon MFC after: 3 days
|
233648 |
29-Mar-2012 |
eadler |
Remove trailing whitespace per mdoc lint warning
Disussed with: gavin No objection from: doc Approved by: joel MFC after: 3 days
|
233455 |
25-Mar-2012 |
joel |
Remove superfluous paragraph macro.
|
229933 |
10-Jan-2012 |
syrinx |
Implement an option to execute SNMP walks using GETBULK requests in bsnmpwalk(1) retrieving multiple values with a Single PDU.
Reviewed by: philip@ Tested by: tsanand129 (at) gmail (dot) com
|
229385 |
03-Jan-2012 |
ed |
Fix subtle typo: compare against idx -- not index.
In this contest, index refers to the index(3) function. In this case it doesn't really harm, as this function is never called with idx == NULL.
MFC after: 2 weeks
|
228990 |
30-Dec-2011 |
uqs |
Spelling fixes for usr.sbin/
|
224584 |
01-Aug-2011 |
uqs |
Fix broken mdoc.
Found by: manlint Approved by: re (kib)
|
216377 |
11-Dec-2010 |
syrinx |
Remove unnecessary debug/error CFLAGS.
Reported by : pawel.worach (at) gmail (dot) com
|
216323 |
09-Dec-2010 |
syrinx |
Unbreak "make installworld" w/ DESTDIR specified
PR : kern/152939
|
216295 |
08-Dec-2010 |
syrinx |
Add bsnmpd(1)'s SNMP client tools (including SNMPv3 support) to the base system.
Sponsored by: The FreeBSD Foundation (the SNMPv3 bits), Google Summer of Code 2005 Reviewed by: philip@ (mostly), bz@ (earlier version based on p4 ch124545) Approved by: philip@
|