ngie
905c80cf71
Fix getopt(3) argument after r290180; I forgot to change -r to -R
...
by accident
MFC after: 3 days
Pointyhat to: ngie
Reported by: vangyzen
Sponsored by: EMC / Isilon Storage Division
2015-12-29 20:17:40 +00:00
uqs
11e0dd6c90
Fix type mismatches for malloc(3) and Co.
...
This is rather pedantic, as for most architectures it holds that
sizeof(type *) == sizeof(type **)
Found by: clang static analyzer
Reviewed by: ed
Differential Revision: https://reviews.freebsd.org/D4722
2015-12-29 11:24:41 +00:00
bapt
ebf326060e
Simplify code for parsing extra groups
2015-12-29 00:08:32 +00:00
bapt
87d5fd23fe
Remove useless assignement of linelen
2015-12-29 00:02:08 +00:00
bapt
abb886fc3d
Restore dryrun support for pw groupmod
2015-12-28 23:57:22 +00:00
dteske
bd647f05b4
Explicitly set permissions on entropy files
...
Differential Revision: https://reviews.freebsd.org/D3933
Submitted by: jmg
Reviewed by: delphij, markm
Approved by: secteam (delphij)
MFC after: 3 days
X-MFC-to: stable/10 stable/9
2015-12-28 17:27:20 +00:00
delphij
aabca00074
Eliminate unneeded includes.
...
Reviewed by: allanjude
Differential Revision: https://reviews.freebsd.org/D4716
2015-12-28 08:53:31 +00:00
araujo
f493b25fe2
The sdp opens the database with PERM_SECURE mode and it is different than
...
dp that opens the database with PERM_INSECURE, so we need to check sdp->put
against sdp instead of use dp->put.
PR: bin/191720
Submitted by: Miles Ohlrich <turingsboy@yahoo.com>
Approved by: rodrigc (mentor)
Differential Revision: https://reviews.freebsd.org/D4255
2015-12-28 05:48:22 +00:00
allanjude
894cd51946
Fix includes in usr.sbin/fstyp/zfs.c
...
Approved by: bapt (mentor)
MFC after: 1 week
Sponsored by: ScaleEngine Inc.
Differential Revision: https://reviews.freebsd.org/D4710
2015-12-26 19:48:36 +00:00
bapt
4400e32f7a
camadd does not require linking to libsbuf or libbsdxml directly
2015-12-24 11:43:32 +00:00
pfg
2c0acd5738
Undo change from r292607 that was not meant to be there
...
Pointyhat: me
2015-12-22 15:42:53 +00:00
pfg
74ea8096f3
cron: Check the return value of pipe(2)
...
Fix inspired by: OpenBSD (rev 1.56)
CID: 1009830
2015-12-22 15:32:45 +00:00
pfg
f801f23bcf
crontab: properly free an entry
...
This should close memory leak.
Obtained from: OpenBSD (rev. 1.62)
CID: 271773
2015-12-22 15:30:26 +00:00
pfg
43a39d413b
crontab: replace malloc + bzero with calloc
...
Obtained from: OpenBSD (Rev 1.20)
2015-12-22 15:20:08 +00:00
ngie
ea1e84c5da
Prevent use-after-free with ctx->ns in set_nameservers(..), which could occur
...
if the memory wasn't allocated again later on
Reported by: Coverity
Submitted by: Miles Ohlrich <miles.ohlrich@isilon.com>
MFC after: 1 week
Sponsored by: EMC / Isilon Storage Division
2015-12-22 05:57:23 +00:00
rodrigc
1a48bc7924
Add libxo support to jls
...
PR: 200746
Submitted by: Emmanuel Vadot <manu bidouilliste com>
Reviewed by: allanjude
Relnotes: yes
Differential Revision: https://reviews.freebsd.org/D4452
2015-12-22 00:58:35 +00:00
ian
68574adad6
Make the building of libsmb and mount_smbfs unconditional, now that r292552
...
has eliminated alignment and endian problems that were making it fail on
some platforms.
PR: 180438
PR: 189415
2015-12-21 17:41:08 +00:00
emaste
f410c06c4a
makefs: use ENTRY macro for diff reduction with NetBSD
...
Sponsored by: The FreeBSD Foundation
2015-12-21 16:12:41 +00:00
ume
cfc55c20f2
Fix indent after r292333.
2015-12-19 09:18:01 +00:00
jhb
4a57c82f71
Fix the precious change to check the pointer returned by malloc().
...
Submitted by: luke <luke.tw@gmail.com>
Pointy hat to: jhb
2015-12-18 17:52:08 +00:00
ume
80c240efb7
Generate ipnodes.by{addr,name} from /etc/hosts for compatibility with
...
FreeBSD local name resolution.
If /var/yp/ipnodes exists, we generate them from it for backward
compatibility.
Inspired by: NetBSD
MFC after: 1 week
2015-12-18 17:30:22 +00:00
ume
7dc8455fce
- Keep hosts.by{name,addr} IPv4 only.
...
- Add comment how we handle hosts and ipnodes. (from NetBSD)
MFC after: 1 week.
2015-12-18 11:20:50 +00:00
jhb
fbc3fb8fca
Exit cleanly if malloc() fails to allocate a buffer for a copy of the
...
current MBR.
PR: 205322
Submitted by: Alexander Kuleshov <kuleshovmail@gmail.com>
MFC after: 1 week
2015-12-17 20:42:05 +00:00
ian
41d1b59ed4
Build mount_smbfs for arm. Also sort the subdirs.
2015-12-16 15:26:31 +00:00
melifaro
fb12a509fe
Provide additional lle data in IPv6 lltable dump used by ndp(8).
...
Before the change, things like lle state were queried via
SIOCGNBRINFO_IN6 by ndp(8) for _each_ lle entry in dump.
This ioctl was added in 1999, probably to avoid touching rtsock code.
This change maps SIOCGNBRINFO_IN6 data to standard rtsock dump the
following way:
expire (already) maps to rtm_rmx.rmx_expire
isrouter -> rtm_flags & RTF_GATEWAY
asked -> rtm_rmx.rmx_pksent
state -> rtm_rmx.rmx_state (maps to rmx_weight via define)
Reviewed by: ae
2015-12-16 10:14:16 +00:00
araujo
2dd258160a
Remove a garbage printf used for debug.
...
Approved by: bapt (mentor implicit)
2015-12-15 15:46:14 +00:00
araujo
c269bcd7ed
Remove the null checker before free.
...
Approved by: bapt (mentor)
Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D4549
2015-12-15 15:42:42 +00:00
araujo
7e0d3844ca
Remove wrong header and the NULL check before free().
...
Approved by: bapt (mentor)
Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D4548
2015-12-15 15:41:09 +00:00
araujo
99a0984f8b
EAGAIN handling for imsg_read.
...
Approved by: bapt (mentor)
Obtained from: OpenBSD
Differential Revision: https://reviews.freebsd.org/D4547
2015-12-15 15:37:58 +00:00
bapt
f1133c49a0
Show the enclosure name and id in sesutil map
...
Sponsored by: Gandi.net
2015-12-15 13:01:14 +00:00
brueffer
0c927cc302
Flesh out the SEE ALSO section.
...
PR: 202929
Submitted by: jhs@berklix.com
MFC after: 1 week
2015-12-14 15:44:34 +00:00
bapt
662efc558a
Fix sesutil locate when a sesid is passed to locate command
2015-12-11 21:11:02 +00:00
bapt
e149088043
sesutil: Add extra information specific to some SES devices to sesutil map
...
Rework stat2ascii preparing a buffer of what could be printed. This prevent the
risk of overflowing a static buffer.
Do not print those informations anymore in the "status" but into a new
"extra status" only printed if there are actually extra things to print.
Now add those extra informations:
* Thermal sensor temperature
* Cooling devices speed
* Voltage sensors, current consumption
Tested by: AllanJude
Sponsored by: Gandi.net
Differential Revision: https://reviews.freebsd.org/D4520
2015-12-11 20:45:39 +00:00
emaste
02c3ce2480
crunchide: add RISC-V to supported machine types
...
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
2015-12-11 13:55:31 +00:00
bapt
70de7ec378
sesutils, pass the correct element type when printing the status of a given
...
element of the ses.
Sponsored by: Gandi.net
2015-12-11 11:08:00 +00:00
bapt
bbf8b22f96
sesutil: fix map not printing the status of the LED device in an array
...
Sponsored by: Gandi.net
2015-12-11 10:58:26 +00:00
imp
870ecdf4d3
Augment kldxref to find the new MODULE_PNP_INFO records now in
...
modules, simplify them into a more normal form and write them to
linker.hints.
Differential Review: https://reviews.freebsd.org/D3461
2015-12-11 05:27:55 +00:00
rrs
7d03b5290e
Fix several typos and bugs within pmcstudy. Also highlight the one SB test
...
that is failing (and is likely a problem in the actual PMC defintions). Add
to this also the -A option to run all canned tests.
Sponsored by: Netflix Inc.
2015-12-10 01:52:29 +00:00
rrs
183b9d9715
Update the manual page to include Broadwell.
2015-12-09 21:54:33 +00:00
rrs
bf3e2aa084
White space changes.
2015-12-09 21:50:06 +00:00
rrs
a4a7e994d3
Proper support of Broadwell tool by the pmc_study based on the
...
Intel Itune guide for 5th generation processors. There is at least
one formula missing in that guide, which I extrapolated and put a ? by
in the help.
Sponsored by: Netflix Inc
2015-12-09 21:49:31 +00:00
asomers
9a0871ec20
When iostat(8) receives SIGINT while running with "-w" or "-c", it will now
...
print statistics one more time before exiting. Also, it now implements the
wait using setitimer instead of sleep, so the waits will be more consistent
when the system is heavily loaded.
MFC after: 4 weeks
Sponsored by: Spectra Logic Corp
Differential Revision: https://reviews.freebsd.org/D4473
2015-12-09 18:07:26 +00:00
bdrewery
cef87fac20
DIRDEPS_BUILD: Update dependencies.
...
Sponsored by: EMC / Isilon Storage Division
2015-12-07 23:53:01 +00:00
nwhitehorn
89ed7c325f
Adapt to new wireless scheme where base wlan interfaces do not show up in
...
ifconfig anymore.
2015-12-06 00:20:45 +00:00
bdrewery
bb97a3d43c
Fix LDADD/DPADD that should be LIBADD.
...
Sponsored by: EMC / Isilon Storage Division
2015-12-04 03:17:47 +00:00
bdrewery
cd8cdf49cb
For INTERNALLIB always add in the corresponding _DP_ and use LIBADD in
...
the real build file.
This lessens the need to define DPADD_<lib> and LDADD_<lib> to just very
special cases.
Sponsored by: EMC / Isilon Storage Division
2015-12-04 03:17:17 +00:00
ken
ec5c45ed2d
Fix typos in the camdd(8) usage() function output caused by an error in
...
my diff filter script.
Sponsored by: Spectra Logic
MFC after: 1 week
2015-12-03 22:07:01 +00:00
bdrewery
e1dd5c5240
Convert to LIBADD
...
Sponsored by: EMC / Isilon Storage Division
2015-12-03 21:16:52 +00:00
bdrewery
5374819b03
Use proper LIBADD.
...
Sponsored by: EMC / Isilon Storage Division
2015-12-03 21:13:08 +00:00
bdrewery
7029337942
DIRDEPS_BUILD: Connect usr.sbin/camdd
...
Sponsored by: EMC / Isilon Storage Division
2015-12-03 21:13:05 +00:00