summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Don't forget to catch realloc() errors.ed2010-04-111-1/+4
|
* Alphabetically sort the output of lastlogin(8).ed2010-04-112-4/+22
| | | | | | | | | According to the manpage, the entries have to be sorted by uid. This is no longer possible, since our utmpx implementation is completely unaware of user IDs. You can safely add entries for multiple users sharing the same uid. Make the output less random by sorting everything by name.
* Add WPA-None support:bschmidt2010-04-102-3/+34
| | | | | | | | | | | | | | | | | | * WPA-None requires ap_scan=2: The major difference between ap_scan=1 (default) and 2 is, that no IEEE80211_IOC_SCAN* ioctls/functions are called, though, there is a dependency on those. For example the call to wpa_driver_bsd_scan() sets the interface UP, this never happens, therefore the interface must be marked up in wpa_driver_bsd_associate(). IEEE80211_IOC_SSID also is not called, which means that the SSID has not been set prior to the IEEE80211_MLME_ASSOC call. * WPA-None has no support for sequence number updates, it doesn't make sense to check for replay violations.. * I had some crashes right after the switch to RUN state, issue is that sc->sc_lastrs was not yet defined. Approved by: rpaulo (mentor) MFC after: 3 weeks
* Add an entry for the old Beastie logo saver and re-sort.jkim2010-04-071-11/+13
|
* Fix compilation error on amd64.ume2010-04-041-2/+3
| | | | | Reported by: stefanf MFC after: 2 weeks
* Fix compilation error on 9-CURRENT.ume2010-04-041-6/+6
| | | | | Reported by: nyan MFC after: 2 weeks
* services_mkdb; generate db file from services(5) to increaseume2010-04-045-0/+695
| | | | | | | speed of getserv*() Obtained from: NetBSD MFC after: 2 weeks
* Bump PKG_INSTALL_VERSION to 20100403.flz2010-04-031-1/+1
|
* Fix pkg_delete, check if the file we're trying to delete is aflz2010-04-031-1/+1
| | | | | | | | symlink before complaining that it doesn't exist. Typical case would be a leftover library symlink that's left over after the actual library has been removed. Reported by: tabthorpe
* Keep the list of default keywords sorted so that paranoid folks like meyar2010-04-031-1/+1
| | | | | | | | don't try to find a hidden meaning in the strange order. The list used to be sorted in rev. 1.1 from 4.4BSD but the order was broken as soon as in rev. 1.2 by a single-character fix. MFC after: 3 days
* Properly initialize the timestamp when using ac -w.ed2010-04-021-1/+2
| | | | | | | When using ac -w, we must use the last timestamp to terminate the log file. I accidentally removed this when I ported the code to use utmpx. Reported by: avg
* Improve "top" header by:fabient2010-04-024-13/+59
| | | | | - Display sample received per PMCs (or merged PMCs). - Display percentage vs all samples
* We don't need to note that mkproto is missing anymore. It isimp2010-04-011-1/+0
| | | | | definitely OBE in a number of ways, and likely should have been removed in 2000, not 2010.
* Various fixes.flz2010-04-019-52/+86
| | | | | | | | | | | | | | | | - Replace hardcoded INDEX version. [1] - Fix a buffer overlap. [2] - Remove empty package when fetching fails and -K is used. [3] - Remove useless chmod2() after mkdtemp(3). [4] - Replace mkdir(1) call with mkdir(2). [5] - Get rid of some vsystem() calls. - Switch from lstat(2) to open(2) in fexists(). - Try rename(2) in move_file() first. - Bump PKG_INSTALL_VERSION to 20100401. PR: bin/145101 [1], bin/139492 [2], bin/144919 [3] bin/144920 [4], bin/144921 [5] Submitted by: gcooper [1,2,3,4,5]
* Sync with OpenBSD:delphij2010-03-302-6/+5
| | | | | | | | | - avoid coredump when there's only one token on a line; - Use calloc(); - Remove a line inherited from example mdoc. Obtained from: OpenBSD MFC after: 1 month
* - Handle calloc() allocation failures.ru2010-03-305-9/+36
| | | | | | | | | - Fixed a comment. - 2 -> EXIT_FAILURE in some places. - errx() -> err() where appropriate. PR: 144644 Submitted by: Garrett Cooper
* o Remove a duplicate reference to -f flag in the SYNOPSYS section.maxim2010-03-301-4/+1
| | | | | | | | o Improve wording. PR: docs/144407 Submitted by: gcooper MFC after: 1 week
* Print memory model of the video mode except for planar memory model.jkim2010-03-291-5/+32
| | | | | 'P', 'D', 'C', 'H', 'V' mean packed pixel, direct color, CGA, Hercules, VGA X memory models respectively where they have fixed number of planes.
* Wait for pmc name in the log before displaying data.fabient2010-03-281-5/+8
| | | | | | This will solve an abort in case of low throughput PMCs. MFC after: 3days
* Change all our own code to use st_*tim instead of st_*timespec.ed2010-03-282-5/+5
| | | | Also remove some local patches to diff(1) which are now unneeded.
* Do not overflow the term in the case of multi-line display.fabient2010-03-261-4/+7
| | | | MFC after: 3days
* o Trim leading w/space.maxim2010-03-261-1/+1
| | | | | | PR: docs/145030 Submitted by: olgeni MFC after: 1 week
* Now actually implement reading/refreshing/returning data from the ↵syrinx2010-03-244-40/+334
| | | | | | | | | | | | pfTablesAddrTable and modify the BEGEMOT-PF-MIB to add support for IPV6 address' statistics in the PF tables via pfTablesAddrNetType and pfTablesAddrNet. While here, upgrade the pf_tree.def file to the new format that includes enumerated values. Also make sure to return SNMP_ERR_NOSUCHNAME for ALTQ objects, if ALTQ is disabled, so that the agent will know to skip the pfAltq subtree when servicing GETNEXT requests from SNMP clients (otherwise snmpwalk on begemotPf would stop at the pfAltq subtree with bsnmpd returning SNMP_ERR_GENERR).
* wollman@ has OK'd dropping his maintainership of zic(8)gavin2010-03-201-1/+0
| | | | | Submitted by: linimon Approved by: wollman (via linimon)
* Chop off excessive long hostnames to keep the table structure intact.ed2010-03-201-1/+1
| | | | This makes lastlogin(8) use exactly the same printf format as last(1).
* Make sure the snmp_pf module will first refresh its entires if necessary,syrinx2010-03-191-12/+12
| | | | | | | | | | | then find a specific entry, and get the requested value. So far, it found the specific entry, refreshed the entry list if necessary, and got the requested value from the found entry. The problem is that refreshing nukes all old entries and replaces them with new ones and the obtained entry pointer was no longer valid after the refresh. Reviewed by: bz, philip MFC after: 1 week
* Properly progress through the list of IPv6 addresses using in6_addr size.ed2010-03-181-1/+1
| | | | | | | | | | | | | | | | | Right now if a jail has multiple IPv6 addresses, it will print them shifting only 4 bytes at a time. Example: 2001:4dd0:ff41::b23f:a9 2001:4dd0:ff41::b23f:aa Becomes: 2001:4dd0:ff41::b23f:a9 ff41::b23f:a9:2001:4dd0 By casting to in6_addr, it uses the correct offsets. MFC after: 1 week
* Add support for retrieving labeled pf filter rule counters.syrinx2010-03-183-4/+382
| | | | | PR: bin/132847 Submitted by: Szalai Andras <szalai (dot) bandi (at) gmail.com>
* Need to set the proper flag bit when inserting ARPqingli2010-03-181-1/+1
| | | | | | entries into the kernel. MFC after: 3 days
* then -> thanjoerg2010-03-151-1/+1
| | | | MFC after: 1 day
* Make it more clear in the docs that -a is not compatible with -iFU,dougb2010-03-142-7/+22
| | | | | | | | and enforce this in the code. Apparently a lot of users mistakenly combine -a with these flags and are then mystified that no changes were made. While I'm here, fix a trailing space in mergemaster.8
* Fix several typos in macros or macro misusage.uqs2010-03-124-14/+4
| | | | | | Found by: make manlint Reviewed by: ru Approved by: philip (mentor)
* Change the way shutdown is handled for log file.fabient2010-03-081-3/+1
| | | | | | | | | | | | pmc_flush_logfile is now non-blocking and just ask the kernel to shutdown the file. From that point, no more data is accepted by the log thread and when the last buffer is flushed the file is closed. This will remove a deadlock between pmcstat asking for flush while it cannot flush the pipe itself. MFC after: 3 days
* Bug fixed:fabient2010-03-053-2/+5
| | | | | | | | - no display on serial terminal in top mode. - display alignment for continuation string. - correct invalid value used for display limit. MFC after: 3 days
* Merge ACPICA 20100304.jkim2010-03-052-8/+8
|
* moused is useful even without usb, so remove comment asking if it is.imp2010-03-041-1/+0
|
* mount_nwfs(8): make WARNS=6 cleanuqs2010-03-042-8/+13
| | | | | | | | uid_t and gid_t are unsigned. While initializing them to -1 and later checking against -1 to see if they are still at their default usually works, introduce two new flags and stop the inband signalling. Approved by: ed (co-mentor)
* Make 'make manlint' happy. No actual visible change.delphij2010-03-031-5/+1
|
* Remove redundant WARNS?=6 overrides and inherit the WARNS setting fromuqs2010-03-022-2/+2
| | | | | | | | the toplevel directory. This does not change any WARNS level and survives a make universe. Approved by: ed (co-mentor)
* Always assign WARNS using ?=uqs2010-03-022-2/+2
| | | | | | | - fix some nearby style bugs - include Makefile.inc where it makes sense and reduces duplication Approved by: ed (co-mentor)
* rtsol(8)/rtsold(8): make WARNS=3 cleanuqs2010-02-277-24/+25
| | | | | | It is actually WARNS=6 clean for non-strict alignment archs. Approved by: ed (co-mentor)
* Fixed static linkage.ru2010-02-263-6/+6
|
* Split the contributed code from libc/stdtime from lib/libc/stdtimeedwin2010-02-262-2/+2
| | | | to contrib/tzcode/stdtime.
* From contrib/tzcode:edwin2010-02-2510-4929/+2
| | | | | | | | The Makefiles are leftovers from the copies and should live in usr.sbin/zic/* From usr.sbin/zic: The sources are from a vendor contributed source, therefore should live in contrib/tzcode/zic.
* Fixed dependencies (make checkdpadd).ru2010-02-252-1/+2
|
* Add bwn(4) driver.weongyo2010-02-251-0/+1
|
* Allow cxgbtool to build with WARNS=6np2010-02-235-160/+211
| | | | MFC after: 1 week
* Add a "-x" option to chown(8)/chgrp(1) similar to the same option ingavin2010-02-213-13/+26
| | | | | | | | | du(1), cp(1) etc, to prevent the crossing of mountpoints whilst using the commands recursively. PR: bin/130855 Submitted by: keramida MFC after: 1 month
* Fix common misspelling of hierarchyuqs2010-02-201-2/+2
| | | | | Pointed out by: bf1783 at gmail Approved by: np (cxgb), kientzle (tar, etc.), philip (mentor)
* Fix mptutil's method for locating disk devices attached to a specificjhb2010-02-191-113/+109
| | | | | | | | | | | | | mpt(4) controller. Previously, the code assumed that multiple match patterns provided to an XPT_DEV_MATCH request were ANDed together. Instead, they are ORed. Instead, to match peripherals for a specific bus, one query needs to be performed to lookup the path ID of the bus. A second query can then be performed matching peripherals attached to that path. This approach also makes the code a bit cleaner as the returned match results do not mix bus and perphierals. Reported by: several folks MFC after: 1 week
OpenPOWER on IntegriCloud