summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
...
* Clarify a warning message.kientzle2012-10-291-1/+2
|
* Fix bug introduced by r241902 (MANIFEST uses TAB delimiter).dteske2012-10-271-1/+1
| | | | | PR: bin/173140 Approved by: adrian (co-mentor)
* While 'make universe' passed this didn't work with clang.eadler2012-10-261-0/+2
| | | | | | | This reverts r242120 Submitted by: Jan Beich Approved by: cperciva (implicit)
* Resurrect and integrate stable/9/usr.sbin/sysinstall/help/usermgmt.hlpdteske2012-10-263-2/+96
| | | | Approved by: adrian (co-mentor) (implicit)
* This utility builds without NO_WCAST_ALIGNeadler2012-10-261-2/+0
| | | | | | | | Tested with make universe No objections from: stas Approved by: cperciva MFC after: 3 days
* Remove unnecessary quotation to clean things up.dteske2012-10-261-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* Don't mask fwe(4) lp(4) or plip(4) devices from ifconfig(8) list.dteske2012-10-261-3/+0
| | | | Approved by: adrian (co-mentor) (implicit)
* Resurrect and integrate stable/9/sysinstall/help/tcp.hlpdteske2012-10-263-3/+46
| | | | Approved by: adrian (co-mentor) (implicit)
* Tighten-up displays that use a NULL prompt (e.g., networking and usermgmt).dteske2012-10-261-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* Fix copy/paste error.dteske2012-10-261-1/+1
| | | | Approved by: adrian (co-mentor) (implicit)
* Switch from using a msgbox to display help files to a textbox instead. Thedteske2012-10-264-40/+81
| | | | | | | | | | | problem with using a msgbox was one of truncation in the case of Xdialog(1) and lack of screen real-estate (since the msgbox is not scrollable in X11 while a textbox is). The textbox renders the text much better and is more appropriate for this type of data display. Approved by: adrian (co-mentor) (implicit)
* Second attempt to add @every_second keyword support. Due to multiplesobomax2012-10-254-30/+149
| | | | | | | | | | | | | | requests, default to the previous 60-seconds scheduling method unless there is any @every_second entries to conserve CPU cycles and power. This change also improves scheduling in the default mode by running as close to the beginning of the minnute as possible by replacing sleep(3) with nanosleep(2). Previously, the tasks would run anywhere within the first second of the minute and that offset drifted back and forth each time cron(8) was engaged. MFC after: 1 month
* When Xdialog(1) is passed a NULL argument to its `--help' option, Xdialog(1)dteske2012-10-252-2/+2
| | | | | | | acts like dialog(1) in that it returns exit status 2 when the help button is chosen. Approved by: adri (co-mentor) (implicit)
* Let lpr build with -Wmissing-variable-declarations.ed2012-10-257-21/+14
| | | | | | Mark variables static where possible and place the uid/euid variables in lp.h, so that we can compile-time enforce that these variables have the same type.
* For PCI Express capability, if max link width is greater than zero, printjimharris2012-10-251-0/+26
| | | | | | | | the current and max link speed. Sponsored by: Intel Discussed with: jhb MFC after: 1 week
* PRIV_START and PRIV_END were reversed.eadler2012-10-241-2/+2
| | | | | | Submitted by: KAHO Toshikazu <kaho@elam.kais.kyoto-u.ac.jp> Approved by: secteam (simon) MFC after: 3 days
* Avoid changing IFS in a global context as this can sometimes causeeadler2012-10-241-7/+8
| | | | | | | | | | | errors later on. PR: bin/172715 Submitted by: Matthew D.Fuller <fullermd@over-yonder.net> (older version) Submitted by: dteske Approved by: cperciva MFC after: 1 week
* Add the release package directory for 9.1-RELEASE.kensmith2012-10-241-0/+1
|
* Optimize syntax to use builtins and reduce unnecessary forking where possible.dteske2012-10-222-14/+10
| | | | | Reviewed by: nwhitehorn Approved by: adrian (co-mentor)
* Resurrect usage.hlp and securelevel.hlp from sysinstall(8) and integrate themdteske2012-10-228-27/+149
| | | | | | into bsdconfig(8). Approved by: adrian (co-mentor) (implicit)
* Check the return error of set[ug]id. While this can never fail in theeadler2012-10-2213-118/+137
| | | | | | | | | | | | | | current version of FreeBSD, this isn't guarenteed by the API. Custom security modules, or future implementations of the setuid and setgid may fail. PR: bin/172289 PR: bin/172290 PR: bin/172291 Submittud by: Erik Cederstrand <erik@cederstrand.dk> Discussed by: freebsd-security Approved by: cperciva MFC after: 1 week
* Fix typo in error when unable to create TCP socketeadler2012-10-221-1/+1
| | | | | | | PR: bin/172490 Submitted by: bdrewery Approved by: cperciva MFC after: 3 days
* Check the return error of set[e][ug]id. While this can never fail in theeadler2012-10-222-3/+7
| | | | | | | | | | current version of FreeBSD, this isn't guarenteed by the API. Custom security modules, or future implementations of the setuid and setgid may fail. Submitted by: Erik Cederstrand Approved by: cperciva MFC after: 3 days
* remove duplicate semicolons where possible.eadler2012-10-222-2/+2
| | | | | Approved by: cperciva MFC after: 1 week
* Warn users when using pkg tools if it looks like theyeadler2012-10-229-1/+46
| | | | | | | | | be be pkgng users. Reviewed by: bapt (earlier version) Reviewed by: kwm Approved by: cperciva MFC after: 3 days
* Fix conditional expression: previously a bit vector was being operatedeadler2012-10-221-1/+1
| | | | | | | on by a logical not instead of the entire expression. Approved by: cperciva MFC after: 3 days
* Move uniq() prototype into extern.h.ed2012-10-203-3/+2
|
* More -Wmissing-variable-declarations fixes.ed2012-10-206-24/+61
| | | | | | | | | | In addition to adding missing `static' keywords: - bin/dd: Pull in `extern.h' to guarantee consistency with source file. - libexec/rpc.rusersd: Move shared globals into an extern.h. - libexec/talkd: Move `debug' and `hostname' into extern.h. - usr.bin/cksum: Put counters in extern.h, as they are used by ckdist/mtree. - usr.bin/m4: Move `end_result' into extern.h. - usr.sbin/services_mkdb: Move shared globals into an extern.h.
* Remove redundant code.ed2012-10-204-60/+35
| | | | | | | Both mfi_flash.c and mfi_show.c contain very similar functions to print a list of firmwares. Move these routines into mfiutil.c. Reported by: jhb
* Indent ecaps the same way we indent caps.imp2012-10-191-1/+1
| | | | MFC after: 3 days
* More -Wmissing-variable-declarations fixes.ed2012-10-1923-92/+73
| | | | | | | | | | | | | | | | In addition to adding `static' where possible: - bin/date: Move `retval' into extern.h to make it visible to date.c. - bin/ed: Move globally used variables into ed.h. - sbin/camcontrol: Move `verbose' into camcontrol.h and fix shadow warnings. - usr.bin/calendar: Remove unneeded variables. - usr.bin/chat: Make `line' local instead of global. - usr.bin/elfdump: Comment out unneeded function. - usr.bin/rlogin: Use _Noreturn instead of __dead2. - usr.bin/tset: Pull `Ospeed' into extern.h. - usr.sbin/mfiutil: Put global variables in mfiutil.h. - usr.sbin/pkg: Remove unused `os_corres'. - usr.sbin/quotaon, usr.sbin/repquota: Remove unused `qfname'.
* Add missing const keywords.ed2012-10-191-4/+4
|
* More-accurately replicate the help system from sysinstall(8). However, alsodteske2012-10-185-5/+61
| | | | | | | | | | | | | | | improve upon the system by giving the user a "Help" button instead of requiring the user to press F1. NOTE: In FreeBSD-9 and higher, dialog(1) does not support the F1 hook, so the mechanism for providing help to the user had to be changed to a button. This now means we can resurrect *.hlp files from usr.sbin/sysinstall/help/ as- is and reusing them as-needed in bsdconfig (holding to the goal of losing as little functionality from sysinstall as possible). Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Fix a bug where blank lines were not being counted (because awk's split()dteske2012-10-181-1/+1
| | | | | | | function returns zero when $0 is the NULL string). Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* make sure that socket's send and receive buffers are properly sizedemax2012-10-182-1/+45
| | | | | Submitted by: Iain Hibbert plunky at rya-online dot net MFC after: 3 weeks
* Disconnect non-MPSAFE SMBFS from the build in preparation for droppingattilio2012-10-185-5/+0
| | | | | | | | | | | | | GIANT from VFS. In addition, disconnect also netsmb, which is a base requirement for SMBFS. In the while SMBFS regular users can use FUSE interface and smbnetfs port to work with their SMBFS partitions. Also, there are ongoing efforts by vendor to support in-kernel smbfs, so there are good chances that it will get relinked once properly locked. This is not targeted for MFC.
* Fix typo.dteske2012-10-181-1/+1
| | | | | Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Fully backout latest changes.sobomax2012-10-182-49/+6
| | | | Pointy hat to: sobomax
* Ask to become root via sudo(8) and give user ability to save this preference.dteske2012-10-172-0/+65
| | | | | Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Remove harmless, but superfluous local change that creeped in alongsobomax2012-10-171-1/+0
| | | | with the r241649.
* Revert latest changes to cron, until better version is worked out (I hope).sobomax2012-10-174-45/+10
| | | | Requested by: few
* Disconnect non-MPSAFE NWFS from the build in preparation for droppingattilio2012-10-172-6/+0
| | | | | | | | | | | | GIANT from VFS. In addition, disconnect also netncp, which is a base requirement for NWFS. In the possibility of a future maintenance of the code and later readd to the FreeBSD base, maybe we should think about a better location for netncp. I'm not entirely sure the / top location is actually right, however I will let network people to comment on that more specifically. This is not targeted for MFC.
* o Use nanosleep(2) to sleep exact amount of time till the next second,sobomax2012-10-171-6/+48
| | | | | | | | | | | | not multiple of 1 second, which results in actual time to drift back and forth every run within 1 second of the actual action has been set for. Suggested by: Ian Lepore o Schedule the first run in 1 second after starting up, not on the boundary of the next minute, which results in the every_second jobs not being run.
* Properly handle non-keyword case by setting e->second to 0.sobomax2012-10-161-0/+1
|
* Disconnect non-MPSAFE PORTALFS from the build in preparation for droppingattilio2012-10-162-2/+1
| | | | | | GIANT from VFS. This is not targeted for MFC.
* Add per-second scheduling into the cron(8). Right now it'ssobomax2012-10-154-9/+45
| | | | | | | | | | | | | | | | | only available via the new @every_second shortcut. ENOTIME to implement crontab(5) format extensions to allow more flexible scheduling. In order to address some concerns expressed by Terry Lambert while discussing the topic few years ago, about per-second cron possibly causing some bad effects on /etc/crontab by stat()ing it every second instead of every minute now (i.e. atime update), only check that database needs to be reloaded on every 60-th loop run. This should be close enough to the current behaviour. Add "@every_minute" shortcut while I am here. MFC after: 1 month
* Add a description for the '-S' option to the mountd man page.rmacklem2012-10-151-2/+15
| | | | | | | This is a content change. Reviewed by: kib MFC after: 2 weeks
* Add a new '-S' option to mountd, which tells it to suspendrmacklem2012-10-151-2/+11
| | | | | | | | | | | | | | | | | execution of the nfsd threads while it is reloading the exports. This avoids clients from getting intermittent access errors when the exports are being reloaded non-atomically. It is not an ideal solution, since requests will back up while the nfsd threads are suspended. Also, when this option is used, if mountd crashes while reloading exports, mountd will have to be restarted to get the nfsd threads to resume execution. This has been tested by Vincent Hoffman (vince at unsane.co.uk) and John Hickey (jh at deterlab.net). The nfse patch offers a more comprehensive solution for this issue. PR: kern/9619, kern/131342 Reviewed by: kib MFC after: 2 weeks
* Mirror the changes made in SVN r240798:dteske2012-10-141-4/+3
| | | | | | | Replace "( : ${var?} )" syntax with better "[ ${var+set} ]" syntax. Reviewed by: adrian (co-mentor) Approved by: adrian (co-mentor)
* Remove cvs/cvsup reference.joel2012-10-141-5/+1
|
OpenPOWER on IntegriCloud