summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Move newsyslog.conf.5 to usr.sbin/newsyslog. There is no real historytrhodes2004-03-122-1/+371
| | | | | | other than 'initial revision' thus I did not request a repocopy. Requested by: ru, gad
* Unremoved a used variable in the PCCARD_ARCH case.bde2004-03-121-0/+3
| | | | Reported by: tinderbox
* Remove unused variables.jhb2004-03-114-8/+1
|
* Fixed assorted misuses of NULL in integer context.bde2004-03-1112-16/+16
|
* Fixed mispellings of '\0' as NULL.bde2004-03-111-2/+2
|
* Remove information about the configuration file.trhodes2004-03-111-308/+3
| | | | Add an Xref to newsyslog.conf.5 and bzip2.1.
* Fixed a misspelling of 0 as NULL.bde2004-03-101-1/+1
|
* Make libgeom usable by C++ programs:jhb2004-03-091-9/+10
| | | | | | | | | | - Add DECL wrappers to libgeom.h. - Rename structure members in libgeom.h to use a lg_ prefix for member names. This is required because a few structures had members named 'class' which made g++ very unhappy. - Catch gstat(8) and gconcat(8) up to these API changes. Reviewed by: phk
* Link pf to the build and install:mlaier2004-03-081-0/+5
| | | | | | | | | | | | | | | | This adds the former ports registered groups: proxy and authpf as well as the proxy user. Make sure to run mergemaster -p in oder to complete make installworld without errors. This also provides the passive OS fingerprints from OpenBSD (pf.os) and an example pf.conf. For those who want to go without pf; it provides a NO_PF knob to make.conf. __FreeBSD_version will be bumped soon to reflect this and to be able to change ports accordingly. Approved by: bms(mentor)
* Shift file locking to source file instead of temp file. This fixeskensmith2004-03-082-8/+5
| | | | | | | | | | | data buffering issue that corrupts files if two pw(8)'s run at the same time as well as changing pw(8) so it uses the same locking mechanism as PAM, vipw(8), pwd_mkdb(8), etc. PR: bin/23501 Submitted by: Alex Kapranoff <alex (at) kapran (dot) bitmcnit (dot) bryansk (dot) su> Approved by: rwatson (mentor) MFC after: 5 days
* Add a check for wtmp records which have invalid values for ut_time. Wtmpgad2004-03-081-12/+64
| | | | | | | | | | | | | | | records with time==0 get "the time of the last valid record", while records where time goes backwards (compared to the previous record) are skipped. Also prints a message saying how many records were changed or skipped due to these checks. Check was inspired by a simpler check in OpenBSD's version. This is all meant to sidestep problems that Tillman Hodgson noticed with 'ac' when running sparc64 with 64-bit time_t's. The real problem is whatever is creating wtmp records with ut_time==0, of course, but I have not yet figured out what is doing that. Reviewed by: no screams from freebsd-sparc64 or bde MFC after: 2 weeks
* Compile 'ac' with DEBUG when arch==sparc64.gad2004-03-081-0/+5
|
* Add a debug-statement from NetBSD, and then rework all debug-statementsgad2004-03-081-9/+82
| | | | | | | | | | so the program compiles without errors or warnings when DEBUG is defined on sparc64 with 64-bit time_t's. Also have debug statements include the year when printing records from a different year than 'now'. Also print out a special timestamp in debug statements when ut_time==0. Reviewed by: freebsd-sparc, bde MFC after: 2 weeks
* In the case where /etc/rc.d/ is empty, do not bogusly ask the user ifdougb2004-03-071-1/+1
| | | | | | | they want to delete '*'. It turns out that there is one valid case where this might happen, installing to an empty DESTDIR. Patch submitted by: schweikh
* Add preliminary support for PCMCIA devices in addition to PCI/cardbus.wpaul2004-03-072-9/+159
| | | | | | | | | | | | if_ndis.c has been split into if_ndis_pci.c and if_ndis_pccard.c. The ndiscvt(8) utility should be able to parse device info for PCMCIA devices now. The ndis_alloc_amem() has moved from kern_ndis.c to if_ndis_pccard.c so that kern_ndis.c no longer depends on pccard. NOTE: this stuff is not guaranteed to work 100% correctly yet. So far I have been able to load/init my PCMCIA Cisco Aironet 340 card, but it crashes in the interrupt handler. The existing support for PCI/cardbus devices should still work as before.
* Set MAKEOBJDIRPREFIX in the environment, like God intended. Thisru2004-03-061-3/+3
| | | | | | only worked because src/Makefile.inc1 is wrapped by src/Makefile. Silence from: dougb
* Use ascii null char ('\0') instead of NULL.nyan2004-03-051-2/+2
| | | | Submitted by: Stefan Farfeleder <stefan@fafoe.narf.at>
* fix reference to sysctl variable: machdep.an_cache_mode -> hw.an.an_cache_moderse2004-03-051-1/+1
|
* Make NULL a (void*)0 whereever possible, and fix the warnings(-Werror)markm2004-03-055-4/+5
| | | | | | | | | | | | | | | that this provokes. "Wherever possible" means "In the kernel OR NOT C++" (implying C). There are places where (void *) pointers are not valid, such as for function pointers, but in the special case of (void *)0, agreement settles on it being OK. Most of the fixes were NULL where an integer zero was needed; many of the fixes were NULL where ascii <nul> ('\0') was needed, and a few were just "other". Tested on: i386 sparc64
* Fix style breakage.takawata2004-03-051-0/+1
| | | | Noticed by: njl
* Eliminate hard sentence breaks.trhodes2004-03-041-8/+19
| | | | General markup fixes (use the .Dq macro).
* Make unprivilaged user can see battery info.takawata2004-03-041-2/+5
|
* Make rpc.lockd bind to a reserved port, since there are NFS clientsroam2004-03-041-0/+18
| | | | | | | | which ignore NLM requests not coming from a reserved port. PR: 56500 Submitted by: Jonathan Lennox <lennox@cs.columbia.edu> MFC after: 1 week
* Add a new option to mountd(8), -p <port>. This allows the user to specifybms2004-03-042-7/+76
| | | | | | | a known port for use in firewall rulesets; otherwise the port is chosen at run-time by bindresvport(). MFC after: 1 week
* Minor style(9) fixes. remove a register keyword, correct two indents.gad2004-03-031-3/+3
| | | | Noticed while comparing to OpenBSD version.
* Convert K&R-style routine definitions to C89 style, partially to reducegad2004-03-031-33/+13
| | | | diffs with OpenBSD. This causes no changes to the object produced.
* Add command line option for chrootdir, all pkg_add(8) operations will bekensmith2004-03-012-3/+39
| | | | | | | | | | done inside of chroot(2) to chrootdir. Added to help with sysinstall(8) support of install to alternate root but possibly useful for setting up jails, etc. No objection from: portmgr@ Style(9) abuse due to: entire program violates style(9) Approved by: rwatson (mentor)
* This is an initial whitespace cleanup commit, new content to follow.kensmith2004-03-011-19/+38
| | | | | | Adding hard line breaks at the end of sentences. Approved by: rwatson (mentor)
* Revert previous change. The effect of -w or -W option is described incharnier2004-02-291-1/+1
| | | | | another paragraph. Obtained from: David Malone <dwmalone@maths.tcd.ie>
* Make rmuser now also remove ipc resources. Also, fix a few minorschweikh2004-02-291-4/+18
| | | | | | | | shell style problems (superfluous backslashes at EOL). PR: 55980 Submitted by: Chris S.J.Peron <maneo@bsdpro.com> MFC after: 2 weeks
* Add skeleton build dirs for pf userland:mlaier2004-02-281-0/+26
| | | | | | | | | | | | | | | | | | libexec/ftp-proxy - ftp proxy for pf sbin/pfctl - equivalent to sbin/ipf sbin/pflogd - deamon logging packets via if_pflog in pcap format usr.sbin/authpf - authentification shell to modify pf rulesets Bring along some altq headers used to satisfy pfctl/authpf compile. This helps to keep the diff down and will make it easy to have a altq-patchset use the full powers of pf. Also make sure that the pf headers are installed. This does not link anything to the build. There will be a NO_PF switch for make.conf once pf userland is linked. Approved by: bms(mentor)
* o Now when the Cold War is ended we can confess our pppd(8) supportsmaxim2004-02-281-0/+6
| | | | | | | CBCP (Call Back Configuration Protocol). Document 'callback phone_number'. Obtained from: NetBSD (pppd/pppd.8, rev. 1.26) MFC after: 3 weeks
* Rename the WATCHDOG option to SW_WATCHDOG and make it use thephk2004-02-284-56/+211
| | | | | | | | | | | generic watchdoc(9) interface. Make watchdogd(8) perform as watchdog(8) as well, and make it possible to specify a check command to run, timeout and sleep periods. Update watchdog(4) to talk about the generic interface and add new watchdog(8) page.
* Add extra sanity check for SDP packets in libsdp(3)emax2004-02-261-1/+3
| | | | Fix yet another endianess bug in sdpd(8)
* Backed out previous commit (bogus addition of -static to CFLAGS).bde2004-02-261-3/+2
| | | | Sorted macros (in build order).
* Fix endianes bugemax2004-02-251-0/+3
|
* According to source code, under certain conditions, logging goes to thecharnier2004-02-251-1/+1
| | | | | "auth" facility not "daemon". Submitted by: "Bill Richter (7X22KEY)" <richterb@binkley.foothill.net>
* Update manual page.phk2004-02-251-19/+26
| | | | Give 8" example for the heck of it.
* Recognize "auto" format.phk2004-02-252-6/+47
| | | | Be more verbose when asked to.
* Set size field correctly, it is number of sectors on the device, notphk2004-02-251-2/+6
| | | | | | number of 512 bytes sectors. Recognize size == -1 as meaning "auto".
* Add an 'add' command to ugidfw(8), which permits specifying a newrwatson2004-02-252-10/+65
| | | | | | | | | rule without explicitly specifying a new rule number. Update copyrights, remove license clause three. Obtained from: TrustedBSD Project Sponsored by: DARPA, McAfee Research
* Have edquota honour MAXLOGNAME rather than hardcoding the maximumceri2004-02-241-1/+1
| | | | | | | | | username length to 29 characters. PR: misc/62944 Submitted by: David Hill <david@wmol.com> Approved by: ru MFC after: 1 week
* style.Makefile(5):johan2004-02-235-5/+5
| | | | Use WARNS?= instead of WARNS=.
* Teach rfcomm_pppd(8) how to register Bluetooth LAN service with local sdpd(8)emax2004-02-232-19/+88
| | | | | | Add -u(unit) option Reviewed by: imp (mentor), ru
* Report login attempts to syslog. Due to the statically-linked nature ofcperciva2004-02-222-1/+21
| | | | | | | | | | | nologin(8), this causes a considerable (100K) increase in the binary size, so I've added a NO_LOGIN_LOG option which disables this. While I'm here, s/sizeof(MESSAGE)/sizeof(MESSAGE) - 1/, in order to avoid writing the string-terminating zero byte. No complaints from: -current Approved by: rwatson (mentor)
* Normalize polling interval while the target is offline.simokawa2004-02-202-7/+13
|
* Clarify the "lp" description to mention port@host syntax.kientzle2004-02-191-1/+1
| | | | Suggested by: NetBSD man page
* Add "-q" argument to setfmac and setfsmac to allow the patient butrwatson2004-02-183-13/+27
| | | | exhausted reader not to see non-fatal warnings.
* l2ping(8) should not loose echo data if target does not responds to the pingemax2004-02-172-24/+36
| | | | Reviewed by: imp (mentor), ru
* Whitespace nit.des2004-02-171-1/+1
|
OpenPOWER on IntegriCloud