summaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r198846 (MF8 r199121):Xin LI2009-11-101-0/+2
| | | | | | | | | | | Set umask to 0x077 instead of the default. This prevents non-root user from reading crashinfo output, which could contain some sensitive information. Approved by: re (kensmith) Notes: svn path=/releng/8.0/; revision=199124
* MFC: Remove spurious README and an old version of the manpage.John Baldwin2009-10-282-678/+0
| | | | | | | Approved by: re (kib) Notes: svn path=/releng/8.0/; revision=198557
* MFC r197625: Fix using lp(1) without the new -t option after r194171.Jilles Tjoelker2009-10-061-2/+2
| | | | | | | Approved by: re (kib) Notes: svn path=/stable/8/; revision=197815
* MFC r196475:Hajimu UMEMOTO2009-09-133-3/+42
| | | | | | | | | | | | | - Add AS lookup functionality to traceroute6(8) as well. - Support for IPv6 transport for AS lookup. - Introduce $RA_SERVER to set whois server. - Support for 4 byte ASN. - ANSIfy function declaration in as.c. Approved by: re (kib) Notes: svn path=/stable/8/; revision=197158
* MFC r196866:Bjoern A. Zeeb2009-09-051-1/+1
| | | | | | | | | | | | | | | In the NEXTADDR macro use SA_SIZE() rather than directly using sizeof(), as introduced in r186119, for advancing the current position into the buffer. See comment in net/route.h for a description of the difference. This makes ndp -s work again. Reviewed by: qingli Approved by: re (kib) Notes: svn path=/stable/8/; revision=196867
* MFC r196530: Document that ppp handles pipe(2) descriptors specially inBrian Somers2009-08-291-1/+14
| | | | | | | | | -direct mode. Approved by: re (kib) Notes: svn path=/stable/8/; revision=196639
* MFC: When ``ppp -direct'' is invoked by a program that uses pipe(2) toBrian Somers2009-08-274-124/+303
| | | | | | | | | | | | | | | | create stdin and stdout, don't blindly try to use stdin as a bi-directional channel. Instead, detect the pipe and set up a special exec handler that indirects write() calls through stdout. This fixes the problem where ``set device "!ssh -e none host ppp -direct label"'' no longer works with an openssh-5.2 server side as that version of openssh ignores the USE_PIPES config setting and *always* uses pipes (rather than socketpair) for stdin/stdout channels. Approved by: re (kib) Notes: svn path=/stable/8/; revision=196576
* MFC: When realloc()ing device memory for transfer to another ppp process,Brian Somers2009-08-273-11/+13
| | | | | | | | | | | don't continue to use the realloc()d pointer - it might have changed! Remove some stray diagnostics while I'm here. Approved by: re (kib) Notes: svn path=/stable/8/; revision=196575
* MFC r196472:Sam Leffler2009-08-231-0/+2
| | | | | | | | | | | Enable _DIRENT_HAVE_D_TYPE so wpa_cli scans directories properly for it's unix domain socket. Before this change wpa_cli would take the first file in the directory that was not "." or "..". Approved by: re (rwatson) Notes: svn path=/stable/8/; revision=196473
* MFC 196392:Simon L. B. Nielsen2009-08-191-1/+161
| | | | | | | | | | | | | | | | | | | | | | Add support for backing up the old kernel when installing a new kernel using freebsd-update. This applies to using freebsd-update in "upgrade mode" and normal freebsd-update on a security branch. The backup kernel will be written to /boot/kernel.old, if the directory does not exist, or the directory was created by freebsd-update in a previous backup. Otherwise freebsd-update will generate a new directory name for use by the backup. By default symbol files are not backed up to save diskspace and avoid filling up the root partition. This feature is fully configurable in the freebsd-update config file, but defaults to enabled. Reviewed by: cperciva Approved by: re (kib) Notes: svn path=/stable/8/; revision=196393
* Merge mptutilScott Long2009-08-1712-0/+4432
| | | | | | | Approved by: re Notes: svn path=/stable/8/; revision=196286
* Merge mfiutilScott Long2009-08-1715-0/+5827
| | | | | | | Approved by: re Notes: svn path=/stable/8/; revision=196285
* MFC r196272Rink Springer2009-08-161-1/+2
| | | | | | | | | | | | | | | | | Prevent sysinstall from needlessly waiting for confirmation when using an USB device in non-interactive mode. If there are no USB devices, sysinstall gives an error messages, and if there is >1, it'll ask which one is to be used. This change allows a non-interactive install from USB media to succeed without any user interaction if there is exactly one USB disk device in the system it can use. Submitted by: Daniel O'Connor < doconnorat gsoft dot com dot au > Reviewed by: randi Approved by: re (rwatson) Notes: svn path=/stable/8/; revision=196273
* MFC 196254 - iostat: add a bit of space between tty in/out columnsGiorgos Keramidas2009-08-151-6/+6
| | | | | | | | | | | | The columns for tty input and output may bump against each other if the tty output needs more than 5 columns. Add a bit of space that pushes everything 1 column to the right, but also avoids the problem. Approved by: re (rwatson) Notes: svn path=/stable/8/; revision=196255
* - Merge r196244:Stanislav Sedov2009-08-151-2/+3
| | | | | | | | | | | | Avoid overflowing the swap size counters in human-readable mode by introducing the new CONVERT_BLOCKS macro which operates on sizes already converted to number of blocks. With this macro it is not longer needed to perform needless multiplica Approved by: re (kib) Notes: svn path=/stable/8/; revision=196245
* Remove bogus char cast.Remko Lodder2009-08-141-1/+1
| | | | | | | | | | | | PR: 118014 Submitted by: Gardner Bell <gbell72 at rogers dot com> Approved by: re (rwatson), imp (mentor, implicit) MFC after: immediate Approved by: re (rwatson), imp (mentor, implicit) Notes: svn path=/stable/8/; revision=196217
* Merge r196213 to stable/8.Colin Percival2009-08-141-0/+1
| | | | | | | Approved by: re (rwatson) Notes: svn path=/stable/8/; revision=196214
* MFC 196147: Fix references to the kernel distributions to use the correctJohn Baldwin2009-08-122-3/+3
| | | | | | | | | names (uppercase). Approved by: re (rwatson, kib) Notes: svn path=/stable/8/; revision=196148
* MFC r196137:Bjoern A. Zeeb2009-08-121-1/+1
| | | | | | | | | | | | | | Do not truncate IPv6 addresses when printing them in the jls -av 7.x multi-IP jail backward compat output. Reported by: ed Tested by: ed Reviewed by: rwatson Approved by: re Notes: svn path=/stable/8/; revision=196138
* Merge r196128 to stable/8.Colin Percival2009-08-121-2/+0
| | | | | | | Approved by: re (rwatson) Notes: svn path=/stable/8/; revision=196130
* Prepare for 8.0 package set, adjust for 8-stable, acknowledge 9-currentKen Smith2009-08-121-1/+3
| | | | | | | | | is coming. Approved by: re (implicit) Notes: svn path=/stable/8/; revision=196115
* Handle kernels that don't have IPv6 by not sending an "ip6.addr"Jamie Gritton2009-07-311-8/+32
| | | | | | | | | | | parameter unless a (numeric) IPv6 address is given. Even the default binaries built with -DINET6 will work with IPv6-less kernels. With an eye to the future, similarly handle the possibility of an IPv4-less kernel. Approved by: re (kib), bz (mentor) Notes: svn path=/head/; revision=195998
* Style tweak.Robert Watson2009-07-301-2/+1
| | | | | | | | Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=195971
* Parse the System Resource Affinity Table ('SRAT') used to describe affinityJohn Baldwin2009-07-292-8/+148
| | | | | | | | | | | relationships between CPUs and memory. Reviewed by: jkim Approved by: re (kib) MFC after: 1 week Notes: svn path=/head/; revision=195947
* Some jail parameters (in particular, "ip4" and "ip6" for IP addressJamie Gritton2009-07-252-28/+43
| | | | | | | | | | | | restrictions) were found to be inadequately described by a boolean. Define a new parameter type with three values (disable, new, inherit) to handle these and future cases. Approved by: re (kib), bz (mentor) Discussed with: rwatson Notes: svn path=/head/; revision=195870
* Change the name displayed in sysinstall(8) from 'Wizard Mode'Edward Tomasz Napierala2009-07-253-4/+4
| | | | | | | | | | to 'Expert Mode', to make it less confusing to new users, to whom a 'wizard' is a set of simple dialogs with the 'next >>>' button. Approved by: re (kensmith) Notes: svn path=/head/; revision=195863
* It is believed the last of the base system that could have an issue withKen Smith2009-07-221-10/+10
| | | | | | | | | | IDs larger than 16-bits has been updated so adjust sysinstall to allow IDs up to the current system-wide size of 32-bits. Approved by: re (kib) Notes: svn path=/head/; revision=195828
* Remove the "dedicated disk mode" partitioning option from sysinstall, inColin Percival2009-07-221-16/+2
| | | | | | | | | | | | | both the disk partitioning screen (the 'F' key) and via install.cfg (the VAR_DEDICATED_DISK option). This functionality is currently broken in 8.x due to libdisk and geom generating different partition names; this commit merely acts to help steer users away from the breakage. Submitted by: randi Approved by: re (kensmith) Notes: svn path=/head/; revision=195817
* Don't get stuck in an infinite loop comparing (short++ <= maxshort)Brian Somers2009-07-191-3/+2
| | | | | | | | | | PR: 136893 Submitted by: Aragon Gouveia - aragon at phat dot za dot net (mostly) Approved by: re (kib) MFC after: 3 weeks Notes: svn path=/head/; revision=195772
* Bump the version of all non-symbol-versioned shared libraries inKen Smith2009-07-191-1/+1
| | | | | | | | | | | preparation for 8.0-RELEASE. Add the previous version of those libraries to ObsoleteFiles.inc and bump __FreeBSD_Version. Reviewed by: kib Approved by: re (rwatson) Notes: svn path=/head/; revision=195767
* add mesh supportSam Leffler2009-07-172-17/+9
| | | | | | | | Submitted by: rpaulo Approved by: re (kib) Notes: svn path=/head/; revision=195746
* Correct the name of the Mongolian Documentation package.Ken Smith2009-07-161-1/+1
| | | | | | | Approved by: re (kib) Notes: svn path=/head/; revision=195725
* fix Jouni's email addressSam Leffler2009-07-127-7/+7
| | | | | | | Approved by: re (blanket) Notes: svn path=/head/; revision=195644
* Give a more expected behavior to -[hns] options, defaulting to allJamie Gritton2009-07-082-11/+18
| | | | | | | | | | parameters instead of ignoring the options and giving the old-style default output. Approved by: re (kib), bz (mentor) Notes: svn path=/head/; revision=195462
* Fix a typo in the examples.Jamie Gritton2009-07-081-2/+2
| | | | | | | Approved by: re (kib), bz (mentor) Notes: svn path=/head/; revision=195461
* Add support for using a livefs from a USB disk.Colin Percival2009-07-084-3/+33
| | | | | | | | Submitted by: randi Approved by: re (kensmith) Notes: svn path=/head/; revision=195442
* Refactor code from installFixitCDROM into a new function, fixit_livefs_common.Colin Percival2009-07-081-49/+70
| | | | | | | | | | | | | While doing so, improve style and reword some comments. This should not result in any functional changes, but the fixit_livefs_common function will be used by future code. Submitted by: randi Approved by: re (kensmith) Notes: svn path=/head/; revision=195441
* Add a missing phrase.Brian Somers2009-07-051-1/+1
| | | | | | | | | | Submitted by: Jason McIntyre jmc at kerhand dot co dot uk Approved by: re (kib) Obtained from: OpenBSD MFC after: 3 weeks Notes: svn path=/head/; revision=195375
* Disable r194497 for now. It doesn't work well with ports-mgmt/tinderbox.Brian Somers2009-07-051-0/+2
| | | | | | | Approved by: re (ken) Notes: svn path=/head/; revision=195346
* Add a new options (-s) that, when specified, skips the question aboutAttilio Rao2009-07-042-24/+33
| | | | | | | | | | | | | adjusting the clock to UTC. That avoids to write on /etc/wall_cmos_clock which is useful in some cases (example: host user in a jail). Sponsored by: Sandvine Incorporated Initially submitted by: Matt Koivisto <mkoivisto at sandvine dot com> Approved by: re (kib) Notes: svn path=/head/; revision=195339
* - Properly order headers, local variables and prototypes. [1]Stanislav Sedov2009-07-011-18/+11
| | | | | | | | | | | - Remove unneeded headers. - Return non-zero error code in usage(). Approved by: re (kib) Suggested by: bde [1] Notes: svn path=/head/; revision=195264
* - Fix the bug in write(2) called with incorrect parameters resulting in writesStanislav Sedov2009-07-012-52/+64
| | | | | | | | | | | | | | | | always started from the start of the packet. - Fix usage string (multiple addresses can be specified). - Make the source more style(9) compliant. - Improve error reporting (do not silently fail if something goes wrong). - Make functions static. - Use warns level 6. Approved by: re (kib) Discussed with: Marc Balmer <marc@msys.ch>, brian, mbr Notes: svn path=/head/; revision=195237
* Compiles without higher warn levelMartin Blapp2009-06-301-2/+0
| | | | | | | | | M wake/Makefile Approved by: re (previous commit) Notes: svn path=/head/; revision=195213
* Don't imply that only FTP urls are supported when we can't fetchBrian Somers2009-06-301-1/+1
| | | | | | | | | | a package. Approved by: re (kib) MFC after: 3 weeks Notes: svn path=/head/; revision=195212
* Add wake, a tool to send Wake on LAN frames to hosts on a local Ethernet networkMartin Blapp2009-06-304-0/+244
| | | | | | | | | | | | | | | Submitted by: Marc Balmer <marc@msys.ch> Reviewed by: rwatson Approved by: re M usr.sbin/Makefile A usr.sbin/wake AM usr.sbin/wake/wake.c AM usr.sbin/wake/Makefile AM usr.sbin/wake/wake.8 Notes: svn path=/head/; revision=195200
* - Add support to atomically set/clear individual bits of a MSR registerStanislav Sedov2009-06-302-25/+136
| | | | | | | | | | | | | | | | | | | | | | via cpuctl(4) driver. Two new CPUCTL_MSRSBIT and CPUCTL_MSRCBIT ioctl(2) calls treat the data field of the argument struct passed as a mask and set/clear bits of the MSR register according to the mask value. - Allow user to perform atomic bitwise AND and OR operaions on MSR registers via cpucontrol(8) utility. Two new operations ("&=" and "|=") have been added. The first one applies bitwise AND operaion between the current contents of the MSR register and the mask, and the second performs bitwise OR. The argument can be optionally prefixed with "~" inversion operator. This allows one to mimic the "clear bit" behavior by using the command like this: cpucontrol -m 0x10&=~0x02 # clear the second bit of TSC MSR Inversion operator support in all modes (assignment, OR, AND). Approved by: re (kib) MFC after: 1 month Notes: svn path=/head/; revision=195189
* - release/* update to use freebsd-doc-* packages instead of buildingMarc Fonvieille2009-06-285-12/+211
| | | | | | | | | | | | | | | FreeBSD docset during 'make release' this will speed up release builds; - sysinstall(8) has also been updated to use these packages with a new menu allowing people to choose what localized doc to install; - mention in UPDATING that docs from the FreeBSD Documentation project are now installed in /usr/local/share/doc/freebsd instead of /usr/share/doc. Approved by: re (kensmith) Notes: svn path=/head/; revision=195132
* Correct a typo (which you can use to in order -> which you can use in orderXin LI2009-06-251-1/+1
| | | | | | | | | | | to). PR: bin/136040 Submitted by: "Vikentii L. Karabin" <kvl tomsksoft com> MFC after: 1 weeks Notes: svn path=/head/; revision=195012
* Support shadow.byname and shadow.byuid maps, protecting them byBrian Somers2009-06-253-27/+81
| | | | | | | | | | | | | insisting on privileged port access. Include /var/yp/Makefile.local if it exists and suggest using it to override /var/yp/Makefile behaviour. Approved by: re (kib) MFC after: 3 weeks Notes: svn path=/head/; revision=194968
* Raise the default size of the EFI partition on ia64 from 100MB to 400MB.John Baldwin2009-06-251-1/+1
| | | | | | | | | | | A fresh install of a current 8.0 snapshot uses 156MB with a single kernel and having the filesystem too small prevented the system from booting. Reviewed by: marcel MFC after: 1 week Notes: svn path=/head/; revision=194953