summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Provide an error message and error handling if there are no networknwhitehorn2011-10-251-0/+7
| | | | | | | | interfaces in the system. This is a non-fatal error except when doing a network installation. PR: bin/161950 MFC after: 3 days
* Provide an error message instead of silent failure if no disks are presentnwhitehorn2011-10-251-4/+13
| | | | | | | in the system. PR: bin/161950 MFC after: 3 days
* Protect NIS server with madvise(2) since this daemon is requiredglebius2011-10-251-0/+4
| | | | for succesful authentication of users.
* Fix argument name. This fixes EINVAL when boot0cfg uses GEOM_PART'ae2011-10-251-1/+1
| | | | | | control interface. MFC after: 3 days
* Staticify elide_root() for now to fix build.delphij2011-10-241-1/+1
|
* Avoid printing // for packages that install to /emaste2011-10-241-3/+11
| | | | | | I have some packages that install to / (for whatever reason). Right now we print entries of the form //path/to/file when listing files (pkg_info -L, pkg_info -g etc.) This change avoids printing the redundant / .
* Protect NIS client with madvise(2) since this daemon is requiredglebius2011-10-241-0/+4
| | | | for succesful authentication of users.
* Apparently, "ada" drives are better treated similarly to "da" drives.ivoras2011-10-241-1/+2
|
* It seems that the warning is much less severe than its message says. Theivoras2011-10-241-1/+1
| | | | device is certainly added to the list after the first pass.
* Fix typoivoras2011-10-242-2/+2
| | | | MFC after: 1 month
* Avoid some "Invalid argument" errors in the installer.nwhitehorn2011-10-231-3/+20
| | | | | PR: bin/161926 MFC after: 5 days
* Add '%' and '@' to the set of characters which can appear in path names.cperciva2011-10-231-1/+1
| | | | Without this change, freebsd-update refuses to accept 9.0 metadata files.
* Add a flush of the current PMC log buffer before displaying the next top.fabient2011-10-182-9/+11
| | | | | | | | As the underlying block is 4KB if the PMC throughput is low the measurement will be reported on the next tick. pmcstat(8) use the modified flush API to reclaim current buffer before displaying next top. MFC after: 1 month
* Escape the newline so we get a proper line continuation. Without thiskensmith2011-10-181-1/+1
| | | | | | | the text of the menu selections doesn't get displayed properly and it makes the installer appear to lock up for no obvious reason. Reviewed by: nwhitehorn
* - remove device keyword from makefs manpageeadler2011-10-171-2/+1
| | | | | | | | PR: docs/144408 Submitted by: gcooper Approved by: gjb Approved by: sahil (mentor) MFC after: 1 week
* Make the usbdump utility work again by using the correct BPF structures.hselasky2011-10-171-5/+5
| | | | MFC after: 3 days
* Place quotes around the output of kbdmap(1), designed to be pasted intonwhitehorn2011-10-161-1/+1
| | | | | | | | /etc/rc.conf. PR: bin/161711 Submitted by: manolis MFC after: 1 week
* - change "is is" to "is" or "it is"eadler2011-10-162-3/+3
| | | | | | | | - change "the the" to "the" Approved by: lstewart Approved by: sahil (mentor) MFC after: 3 days
* Add a "kern.features.ata_cam" sysctl in the kernel when the ATA_CAM kernelrodrigc2011-10-092-1/+35
| | | | | | | | | | | | | | | | | | | | | option is defined. This sysctl can be queried by feature_present(3). Query for this feature in /sbin/atacontrol and /usr/sbin/burncd. If these utilities detect that ATA_CAM is enabled, then these utilities will error out. These utilities are compatible with the old ATA driver, but are incomptible with the new ATA_CAM driver. By erroring out, we give end-users an idea as to what remedies to use, and reduce the need for them to file PR's. For atacontrol, camcontrol must be used instead, and for burncd, alternative utilties from the ports collection must be used such as sysutils/cdrtools. In future, maybe someone can re-write burncd to work with ATA_CAM, but at least for now, we give a somewhat useful error message to end users. PR: 160979 Reviewed by: jh, Arnaud Lacombe <lacombar at gmail dot com> Reported by: Joe Barbish <fbsd8 at a1poweruser dot com> MFC after: 3 days
* Add support to makefs(8) to add UFS labels to images.nwhitehorn2011-10-094-1/+12
| | | | | Submitted by: avg MFC after: 3 days
* Avoid magicking into existence sub-partitions due to leftover blocks whennwhitehorn2011-10-081-11/+22
| | | | | | | | creating new ones by destroying any geom that may have come into existence immediately after adding a partition. The EBR partition scheme is particularly enthusiastic about false positives in this case. MFC after: 3 days
* Usability enhancements: do not allow setting a mountpoint on bsdlabelnwhitehorn2011-10-081-1/+30
| | | | | | | | container partitions, which didn't do anything anyway, and check for an existing freebsd-boot partition before bothering the user to make one. PR: bin/160931 MFC after: 3 days
* Work around some behavior of gpart that I absolutely do not understand innwhitehorn2011-10-074-62/+42
| | | | | | | | order to make every operation of the partition editor fully revertable. Under *no circumstances* will it any longer touch the disks until the user presses Finish and confirms it. MFC after: 3 days
* Move "Exit" to the first entry in the list, so that it is the defaultnwhitehorn2011-10-061-2/+2
| | | | | | | choice. PR: bin/160913 MFC after: 3 days
* Ask if you want to set the keymap before invoking kdbmap to preventnwhitehorn2011-10-061-0/+2
| | | | | | | confusion. PR: bin/160913 MFC after: 3 days
* portsnap: Detect error immediately if we can't fetch the snapshot metadata.jilles2011-10-041-3/+3
| | | | | | | Also add some quotes around command substitution where useful and possible. Reviewed by: cperciva MFC after: 1 week
* Farewall, sysinstall! You served us well for many years, but 10.0 is onenwhitehorn2011-10-0365-23030/+0
| | | | | | | | digit beyond your time. Various sysinstall dependencies (e.g. libftpio, libdisk, libodialog, etc.) will be cleaned up in coming days. Some will take longer than others due to a few other consumers (tzsetup and sade).
* Get rid of major/minor number distinction.ed2011-09-281-1/+1
| | | | | | | | | | | | | | | | | | | | | | As of FreeBSD 6, devices can only be opened through devfs. These device nodes don't have major and minor numbers anymore. The st_rdev field in struct stat is simply based a copy of st_ino. Simply display device numbers as hexadecimal, using "%#jx". This is allowed by POSIX, since it explicitly states things like the following (example taken from ls(1)): "If the file is a character special or block special file, the size of the file may be replaced with implementation-defined information associated with the device in question." This makes the output of these commands more compact. For example, ls(1) now uses approximately four columns less. While there, simplify the column length calculation from ls(1) by calling snprintf() with a NULL buffer. Don't be afraid; if needed one can still obtain individual major/minor numbers using stat(1).
* Improve battery capacity reportingemaste2011-09-271-10/+15
| | | | | | | | | | | | | | | | | | When a status pointer is passed in mfi_dcmd_command does not return an errno (if the ioctl is successful), so move the test for NO_HW_PRESENT outside of the error case. This should fix incorrect reporting for systems with a dead or no battery. Additionally, handle error codes other than NO_HW_PRESENT by omitting the battery capacity display. LSI's supercap-based parts (CV series) report their data using the same interface as battery-based parts, except that they do not include the capacity stats (state of charge, cumulative charge cycles, etc.) Reviewd by: jhb, bz Tested by: pluknet@, Garrett Cooper PR: bin/160581 MFC after: 1 week
* Shift head from 9.0-CURRENT to 10.0-CURRENT in preparation for releasingkensmith2011-09-261-1/+3
| | | | | | it from the 9.0-RELEASE release cycle code freeze. Approved by: re (implicit)
* Remove RA timer on an interface with !IFF_UP actively after starting to sendhrs2011-09-201-0/+15
| | | | | | | | | clean-up RA messages for shutting down. The RA timers could prevent the rtadvd daemon from shutting down because ra_output() just ignored !IFF_UP interfaces and TRANSITIVE->UNCONFIGURED state transition never happened due to it. Spotted by: kib Approved by: re (bz)
* Fix a logic bug in pc-sysinstall creating partitions.jpaetzel2011-09-1911-36/+60
| | | | | | | | | | | | | Improve exit when an error occurs. Fix parsing to grab values which contain extra '=' signs. Fix a bug setting the timezone properly. Fix a usage bug when setting up with gmirror. Allow a uzip file from local media to be used. Allow specifying flags for "newfs" when using UFS as the file system. Run custom commands after doing final cleanup / fstab generation and such. Also fix using relative path for config file. Approved by: re (bz)
* Inquire about terminal type if starting from a serial console and donwhitehorn2011-09-171-6/+4
| | | | | | | | | not configure the host's networking if netbooted [1]. Also fix FTP installations behind some firewalls [2]. PR: bin/159583 [2] Reported by: stas [1] Approved by: re (kib)
* Fix a typo introduced in r219892 that prevented file system options fromnwhitehorn2011-09-161-1/+1
| | | | | | being set correctly. Approved by: re (kib)
* Fix WPA setup broken by changes to shell argument passing inside thenwhitehorn2011-09-161-0/+1
| | | | | | | installer network configuration. PR: bin/159558 Approved by: re (kib)
* Print the package name on deletion errors.pluknet2011-09-161-2/+2
| | | | | | | | | | It appears this was already done in NetBSD a decade ago, hence I just reuse the change (except our code is bad styled). PR: bin/160516 Approved by: portmgr Approved by: re (kib) Obtained from: NetBSD
* Allow WPA PSKs up to 63 characters, the max length according tobrueffer2011-09-131-1/+1
| | | | | | | | | wpa_supplicant.conf(5). Up to now, the PSK was truncated to 15 characters (the length of the input field). PR: 159559 Submitted by: Gavin Chappell <gavin.chappell@gmail.com> Approved by: re (kib)
* - Add ":origin" label to the interface id for resolvconf(8). (r223149)hrs2011-09-124-52/+164
| | | | | | | | | | | | - Add -u option to enable adding :[RA-source-address] to the interface id. (r223149) - s/INET6_ADDRSTRLEN/sizeof(ntopbuf)/ (r223149) - Fix a bug that can prevent -D from being overridden by -d. (r223149) - /-P pidfile/-p pidfile/ for consistency with rtadvd(8). (r223149) - Fix -F flag handling to support receiving RAs even when ip6.forwarding=1. (r225150) Approved by: re (kib)
* - Fix a bug that can lead to displaying an incorrect value. (r224210)hrs2011-09-128-188/+240
| | | | | | | | | | | | | | - Fix an abnormal termination caused by twice of "rtadvctl disable". (r224303) - Use poll() to wait for the control message socket instead of a spin loop. (r224304) - s/cmsg_/cm_/ to avoid conflict with CMSG_* symbols for struct cmsghdr. (r224619) - Ignore an interface that never sent RAs for graceful shut-down. (r224620) - Refine log messages. (r225148) - Fix SIGSEGV when receiving RAs that contain RDNSS and/or DNSSL options. (r225149) Approved by: re (kib)
* Add ftp4.se.freebsd.org to the IPv4 and IPv6 mirror lists.brueffer2011-09-102-0/+3
| | | | | | PR: 157210, 157211 Submitted by: Niclas Zeising <zeising@lysator.liu.se> Approved by: re (kib)
* Correct a typo.bz2011-09-071-1/+1
| | | | | | Submitted by: gcooper Reviewed by: nwhitehorn Approved by: re (kib)
* Fix two problems:bz2011-09-072-4/+8
| | | | | | | | | | | | 1) if no default gateway is given the route command will fail and the script will abort with an error leading to an endless loop unless configuration is cancelled or changed. [1] 2) In the IPv6 case add -inet6 to not alter the legacy IP default route. Reported by: Oleg Ginzburg (olevole olevole.ru) [1] Tested by: Oleg Ginzburg (olevole olevole.ru) [1] Approved by: re (kib)
* Upgrade to BIND version 9.8.1. Release notes at:dougb2011-09-031-1/+1
| | | | | | | | https://deepthought.isc.org/article/AA-00446/81/ or /usr/src/contrib/bind9/ Approved by: re (kib)
* Move the logic to parse volume cache commands out into a separate functionjhb2011-09-022-119/+159
| | | | | | | | | and use a loop so that multiple cache commands can be strung together on the command line into a single update to the volume's properties. Reviewed by: bz Approved by: re (kib) MFC after: 1 week
* Swap FTP paths to be MACHINE/MACHINE_ARCH instead of MACHINE_ARCH/MACHINE.nwhitehorn2011-08-301-1/+1
| | | | | | | | | | This follows what the output of make targets looks like, and reduces the number of directories needed on the FTP server, since we now have only one architecture with multiple machine types (i386, which has i386 and pc98), but 3 machines with 9 architectures between them (powerpc, mips, and arm). Requested by: kensmith, bz Approved by: re(kensmith)
* If a drive is not part of the array (i.e. missing) we need to print thebz2011-08-251-1/+1
| | | | | | | | | new line after the pd state information as well, so move it to the outside of the block. Submitted by: Mark Johnston at Sandvine Inc MFC atfer: 3 days Approved by: re (kib)
* Fix buffer overflow and possible ISO image corruption in wrongmm2011-08-231-7/+3
| | | | | | | | | | | | handling of "." character case in makefs ISO level 1 and 2 filename conversion. Filed as NetBSD PR #45285 http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45285 Reviewed by: Christos Zoulas <christos@netbsd.org> Approved by: re (kib) MFC after: 3 days
* Implement support for GRAID volumes in the installer partition editor,nwhitehorn2011-08-214-17/+60
| | | | | | | rename a few options, clarify some help text, and add help text for the buttons on the main partition editor screen. Approved by: re (kib)
* Make messages about typos appear on the screen instead of in the log file.nwhitehorn2011-08-212-2/+2
| | | | | Reported by: lev Approved by: re (kib)
* Fix a bug that prevented docsinstall from being able to use DNS in mostnwhitehorn2011-08-181-1/+11
| | | | | | | cases and provide a better error handling mechanism during package installation. Approved by: re (kib)
OpenPOWER on IntegriCloud