aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Fix WPA setup broken by changes to shell argument passing inside theNathan Whitehorn2011-09-161-0/+1
| | | | | | | | | | installer network configuration. PR: bin/159558 Approved by: re (kib) Notes: svn path=/head/; revision=225612
* Print the package name on deletion errors.Sergey Kandaurov2011-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 Notes: svn path=/head/; revision=225610
* Allow WPA PSKs up to 63 characters, the max length according toChristian Brueffer2011-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) Notes: svn path=/head/; revision=225539
* - Add ":origin" label to the interface id for resolvconf(8). (r223149)Hiroki Sato2011-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) Notes: svn path=/head/; revision=225520
* - Fix a bug that can lead to displaying an incorrect value. (r224210)Hiroki Sato2011-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) Notes: svn path=/head/; revision=225519
* Add ftp4.se.freebsd.org to the IPv4 and IPv6 mirror lists.Christian Brueffer2011-09-102-0/+3
| | | | | | | | | PR: 157210, 157211 Submitted by: Niclas Zeising <zeising@lysator.liu.se> Approved by: re (kib) Notes: svn path=/head/; revision=225467
* Correct a typo.Bjoern A. Zeeb2011-09-071-1/+1
| | | | | | | | | Submitted by: gcooper Reviewed by: nwhitehorn Approved by: re (kib) Notes: svn path=/head/; revision=225430
* Fix two problems:Bjoern A. Zeeb2011-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) Notes: svn path=/head/; revision=225429
* Upgrade to BIND version 9.8.1. Release notes at:Doug Barton2011-09-031-1/+1
| | | | | | | | | | | https://deepthought.isc.org/article/AA-00446/81/ or /usr/src/contrib/bind9/ Approved by: re (kib) Notes: svn path=/head/; revision=225361
* Move the logic to parse volume cache commands out into a separate functionJohn Baldwin2011-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 Notes: svn path=/head/; revision=225331
* Swap FTP paths to be MACHINE/MACHINE_ARCH instead of MACHINE_ARCH/MACHINE.Nathan Whitehorn2011-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) Notes: svn path=/head/; revision=225270
* If a drive is not part of the array (i.e. missing) we need to print theBjoern A. Zeeb2011-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) Notes: svn path=/head/; revision=225168
* Fix buffer overflow and possible ISO image corruption in wrongMartin Matuska2011-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 Notes: svn path=/head/; revision=225121
* Implement support for GRAID volumes in the installer partition editor,Nathan Whitehorn2011-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) Notes: svn path=/head/; revision=225066
* Make messages about typos appear on the screen instead of in the log file.Nathan Whitehorn2011-08-212-2/+2
| | | | | | | | Reported by: lev Approved by: re (kib) Notes: svn path=/head/; revision=225065
* Fix a bug that prevented docsinstall from being able to use DNS in mostNathan Whitehorn2011-08-181-1/+11
| | | | | | | | | | cases and provide a better error handling mechanism during package installation. Approved by: re (kib) Notes: svn path=/head/; revision=224972
* Fix jls backward compat mode broken in r222465, correctlyBjoern A. Zeeb2011-08-131-1/+1
| | | | | | | | | | | displaying addresses in verbose mode (jls -v) again. Submitted by: jamie MFC after: 3 days Approved by: re (kib) Notes: svn path=/head/; revision=224841
* Move cxgbtool from usr.sbin to tools/tools.Navdeep Parhar2011-08-107-11278/+0
| | | | | | | | Approved by: re (kib) MFC after: 1 month Notes: svn path=/head/; revision=224768
* Sync makefs(8) ISO 9660 support with NetBSD:Marius Strobl2011-08-106-31/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | o cd9960 -> cd9660 o Move inclusion of sys/endian.h from cd9660_eltorito.c to cd9660.h since actual user is not cd9660_eltorito.c but iso.h and cd9660_eltorito.h. Actually, include order/place of sys/endian.h doesn't matter on netbsd since it is always included by sys/types.h but it's not true on other system. This should fix cross build breakage on freebsd introduced by rev. 1.16 of cd9660_eltorito.c. Problem reported and fix suggested on twitter. o Fix fd leaks in error cases. Found by cppcheck. o RRIP RE length should be 4, not 0 o Apply fixes for PR bin/44114 (makefs(8) -t cd9660 -o rockridge creates corrupted cd9660fs), iso9660_rrip.c part: - cd9660_rrip_finalize_node() should check rr_real_parent in node->parent, not in node itself in RRIP_PL case - cd9660_rrip_initialize_node() should update only node passed as arg so handle RRIP_PL in DOTDOT case Fixes malformed dotdot entries in deep (more than 8 level) directories moved into .rr_moved dir. Should be pulled up to netbsd-5. (no official ISO has such deep dirs, but cobalt restorecd is affected) Reviewed by: mm Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days Notes: svn path=/head/; revision=224762
* Make clear that the -U option can be dangerous. [1]Doug Barton2011-08-092-6/+10
| | | | | | | | | | | | | | In -p mode install the group file with the same permissions as normally done in etc/Makefile. Update the copyright. Requested by: peter [1] Approved by: re (kib) Notes: svn path=/head/; revision=224726
* Convert pmcstat about using cpuset_t rather than relying on plain 32 bitAttilio Rao2011-08-073-74/+81
| | | | | | | | | | | | | | | | | | | ints. That fixes a first bug where pmcstat wasn't using the old cpumask_t interface and now also brings the full support for more than 32 cpus. While here, make the functions pmcstat_clone_event_descriptor() and pmcstat_get_cpumask() private to pmcstat. The problem of assuming cpu dense masks still persists and should be eventually fixed, as reported by avg. Tested by: pluknet Reviewed by: gnn Approved by: re (kib) Notes: svn path=/head/; revision=224698
* Fix NetBSD PR bin/44114:Martin Matuska2011-08-071-7/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | makefs with -t cd9660 -o rockridge against directories with deep structure creates a corrupted cd9660 image. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=44114 Fix NetBSD PR bin/45217: makefs creates ISO9660 images that violate the ECMA-119 (ISO9660) specification. This is caused by erroneously writing 32 bytes with value 0x20 to the volume_set_id field and 128 bytes with value 0x20 to the the following 37-byte fields in the PVD: copyright_file_id, abstract_file_id, bibliographic_file_id This causes, among other unwanted results the reserved4 field to be overwritten with the value 0x20. To comply with the specification, this field muse be zero. As a result, all FreeBSD distribution images created with makefs have not been 100% valid ISO9660 files. http://gnats.netbsd.org/cgi-bin/query-pr-single.pl?number=45217 Reviewed by: kientzle Approved by: re (kib) Obtained from: NetBSD MFC after: 3 days Notes: svn path=/head/; revision=224690
* Fix a silly typo on my part.Doug Barton2011-08-061-1/+1
| | | | | | | Approved by: re (hrs) Notes: svn path=/head/; revision=224672
* Add back ftp4, a new machine has taken its place. ftp2 and ftp8 are both ↵Ollivier Robert2011-08-051-2/+3
| | | | | | | | | | | | IPv6 capable mirrors. cvsup4/ftp4 have already been added to the handbook. Reviewed by: nathanw Approved by: re (kib) Notes: svn path=/head/; revision=224656
* Always disable mount and unmount for jails with enforce_statfs==2.Martin Matuska2011-08-021-2/+7
| | | | | | | | | | | A working statfs(2) is required for umount(8) in jail. Reviewed by: pjd, kib Approved by: re (kib) MFC after: 2 weeks Notes: svn path=/head/; revision=224615
* Provide a more user friendly URL to the IETF site in faithd(8).Glen Barber2011-08-021-2/+2
| | | | | | | | | Pointed out by: dougb Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=224609
* Fix broken mdoc.Ulrich Spörlein2011-08-011-22/+39
| | | | | | | | Found by: manlint Approved by: re (kib) Notes: svn path=/head/; revision=224584
* Backout r223115 which potentially caused a POLA violation, by restoringXin LI2011-07-311-1/+1
| | | | | | | | | | | historic behavior (create the default base directory in pw.conf) before I came up with a better fix for this. Requested by: nwhitehorn Approved by: re (kib) Notes: svn path=/head/; revision=224535
* Properly initialize an error variable to avoid returning uninitializedJohn Baldwin2011-07-291-0/+1
| | | | | | | | | | | | data when 'show drives' succeeds, often resulting in a failing exit code even though the command worked fine. Reviewed by: bz Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=224495
* Revert my last change to this file, as BETA1 is not announced yet.Benedict Reuschling2011-07-281-6/+1
| | | | | | | | | Pointed out by: kib Pointy hat to: me Approved by: re (kib, implicit) Notes: svn path=/head/; revision=224477
* Add a section to the jail chapter that explains why it is notBenedict Reuschling2011-07-281-1/+6
| | | | | | | | | | | | recommended to allow root users in the jail to access the host system. PR: docs/156853 Submitted by: crees Patch by: crees Approved by: re (kib) for BETA1 Notes: svn path=/head/; revision=224475
* To inet or not two inet. Unbreak static IPv4 configuration. If you triedBjoern A. Zeeb2011-07-281-1/+1
| | | | | | | | | | | you were stuck in an endless loop. Reported by: kensmith Approved by: re (kib) for BETA1 Pointy hat to: bz - wonder why I had not tested legacy IP thoroughly.. Notes: svn path=/head/; revision=224470
* Document the potential for jail escape.Glen Barber2011-07-241-1/+8
| | | | | | | | | | | | Submitted by: Vedad KAJTAZ (vedad % kajtaz net) PR: 142341 Reviewed by: bz, rwatson Rewording by: rwatson Approved by: re (kensmith) MFC after: 3 days Notes: svn path=/head/; revision=224286
* Fix various broken links in manual pages.Glen Barber2011-07-231-2/+2
| | | | | | | | | | | Submitted by: Michiel Overtoom (motoom % xs4all nl) PR: 159130 159131 159132 159133 159134 159135 159136 159137 158138 159144 Approved by: re (kib) MFC after: 3 days Notes: svn path=/head/; revision=224284
* Fix `diskinfo -t` operation for disks smaller then 8GB or bigger then 2TB.Alexander Motin2011-07-211-21/+28
| | | | | | | | | Tested to work with 1.44MB floppy, 4GB USB stick and 4TB disk array. Approved by: re (kib) Notes: svn path=/head/; revision=224250
* The named.reload script is no longer useful in the age of rc.dDoug Barton2011-07-184-120/+0
| | | | Notes: svn path=/head/; revision=224175
* Add a closing '.El' tag.Glen Barber2011-07-171-0/+1
| | | | | | | Found by: manlint Notes: svn path=/head/; revision=224148
* - Improve interface list handling. The rtadvd(8) now supports dynamically-Hiroki Sato2011-07-1725-1430/+4143
| | | | | | | | | | | | | | | | | | | | | | added/removed interfaces in a more consistent manner and reloading the configuration file. - Implement burst unsolicited RA sending into the internal RA timer framework when AdvSendAdvertisements and/or configuration entries are changed as described in RFC 4861 6.2.4. This fixes issues that make termination of the rtadvd(8) daemon take very long time. An interface now has three internal states, UNCONFIGURED, TRANSITIVE, or CONFIGURED, and the burst unsolicited sending happens in TRANSITIVE. See rtadvd.h for the details. - rtadvd(8) now accepts non-existent interfaces as well in the command line. - Add control socket support and rtadvctl(8) utility to show the RA information in rtadvd(8). Dumping by SIGUSR1 has been removed in favor of it. Notes: svn path=/head/; revision=224144
* Fix the location of the default pid file in named.8Doug Barton2011-07-171-1/+2
| | | | | | | | | | Problem pointed out in the PR PR: conf/155006 Submitted by: Helmut Schneider <jumper99@gmx.de> Notes: svn path=/head/; revision=224122
* Add PS3 partitioning (and framework for future pseries support) to theNathan Whitehorn2011-07-161-2/+25
| | | | | | | installer. Notes: svn path=/head/; revision=224108
* bmake and other updates necessary for the BIND 9.8.x upgrade.Doug Barton2011-07-1614-10/+215
| | | | | | | | | | | | This includes a structural change regarding atomic ops. Previously they were enabled on all platforms unless we had knowledge that they did not work. However both work performed by marius@ on sparc64 and the fact that the 9.8.x branch is fussier in this area has demonstrated that this is not a safe approach. So I've modified a patch provided by marius to enable them for i386, amd64, and ia64 only. Notes: svn path=/head/; revision=224093
* Fix logical_cpus_mask retrieving by using, correctly, cpuset_t.Attilio Rao2011-07-151-6/+13
| | | | | | | | | | This fix also a bug where pmccontrol uses a 32 static type rather than old cpumask_t. Reported and reviewed by: avg Notes: svn path=/head/; revision=224058
* pmcstat, pmccontrol: catch up with removal of machdep.hlt_cpus sysctlAndriy Gapon2011-07-152-31/+3
| | | | | | | | | Reported by: Pan Tsu <inyaoo@gmail.com> Reviewed by: attilio No objections: gnn Notes: svn path=/head/; revision=224057
* Use calloc() instead of an explicit memset.Xin LI2011-07-141-4/+2
| | | | | | | MFC after: 2 weeks Notes: svn path=/head/; revision=224003
* Add a new option, -N to disable the default and recommended syslogd(8)Xin LI2011-07-142-8/+31
| | | | | | | | | | | behavior, which binds to the well known UDP port. This option implies -s. MFC after: 2 months Notes: svn path=/head/; revision=224002
* Use prototype. While I'm there, add a pair of parenthesis to mark an ifXin LI2011-07-145-7/+8
| | | | | | | | | statment's border. MFC after: 1 month Notes: svn path=/head/; revision=224001
* Run newaliases at the end of the install process.Nathan Whitehorn2011-07-131-0/+4
| | | | | | | Submitted by: kevlo Notes: svn path=/head/; revision=223980
* Try and fix the exports.5 man page so that it clarifies howRick Macklem2011-07-121-1/+21
| | | | | | | | | | | NFSv4 exports are handled. Improved by informal review comments from mckusick, kudak at mit.edu and bde. This is a content change. MFC after: 2 weeks Notes: svn path=/head/; revision=223954
* Use full buffer size in read(2) call, there is no need to preserve theAndrey V. Elsukov2011-07-111-11/+5
| | | | | | | | | | | | | | | | | | | last byte of the buffer. Since we call refresh_device_tbl() for any devctl event types - no need to check the first byte of buffer. Remove these checks. Also remove logging for the case of unknown devd message. It incorrectly triggers when all devctl events are not fit into one buffer and part of unread data will be read in the next pass. When length of data readed from devctl is equal to sizeof(buf), then try to read from socket again, to read full data. MFC after: 2 weeks Notes: svn path=/head/; revision=223933
* Per request of the docs team, install docs as packages, instead of viaNathan Whitehorn2011-07-093-4/+78
| | | | | | | | | | the normal distfile mechanism. Thanks to Marc Fonvieille for the patch and for putting up with me taking entirely too long to commit this! Submitted by: blackend Notes: svn path=/head/; revision=223897