summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* * fix ctm(8) to use mkstemp() instead of tempnam() for tempfilekris2001-05-065-7/+64
| | | | | | | | | | | | | creation. * Tag the internal err() function with __printflike to allow checking for non-constant format string arguments (none exist) * Use fmtcheck() to sanitize the tar command obtained via -t to make sure it doesn't contain extraneous format operators. Reviewed by: mikeh MFC after: 1 week
* Make soft updates option print more nicely and stop overflow ofjkh2001-05-062-10/+16
| | | | | right-hand margin when set in 2nd column. Also do a small amount of code cleanup.
* Replace an instance of the "watch" word with the ".Nm" macro: it is used toolgeni2001-05-041-1/+3
| | | | specify the command name.
* Off by one in counting the number of MIB entries.dmlb2001-05-031-1/+1
|
* make isdnd less verbose while calculating times: fix another message to behm2001-05-031-2/+2
| | | | logged at DL_VALID instead at DL_MSG.
* Remove now obsolete check for root filesystems > cyl 1024. The bootjkh2001-05-032-28/+8
| | | | | | loader can handle such cases. Noted by: olgeni
* * include/elf.h has been repo copied to include/elf-hints.h, and it noobrien2001-05-023-5/+8
| | | | | | | | longer includes machine/elf.h. * consumers of elf.h now use the minimalist elf header possible. This change is motivated by Binutils 2.11.0 and too much clashing over our base elf headers and the Binutils elf headers.
* Add a missing free(3).yar2001-05-021-0/+1
| | | | | | PR: bin/27001 Submitted by: alex <ml-freebsd-net@phobgate.de>, Matthew Emmerton <matt@gsicomp.on.ca>
* Handle situations where we've already got a P2P interface addressbrian2001-05-021-1/+6
| | | | | | | | | | | | | | | of a/x -> b and then negotiate a/x -> c by simply expecting SIOCAIFADDR to do the change. This was broken by the last commit that optimised out the deletion and re-addition of the same a/x -> b combination, and forgot to compare the old/new destination addresses. Conveniently enough, this problem didn't effect setups where the default route goes via the ppp link, and most other setups don't care what the the destination address is actually set to. It broke test environments where ppp connects to the local machine rather badly though....
* Fix the rmuser script to correctly determine if a user does not exist.adrian2001-05-021-1/+1
| | | | PR: 26674
* Extend adduser to create "locked" accounts. Adduser can now lock anadrian2001-05-021-15/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | | account at creation, create accounts with a "*" password (so you can use alternate authentication schemes without fearing a "default" password biting you later), and blank passwords. Yes, adduser could create a blank password account, but this makes it slightly more difficult to shoot yourself in the foot. The /etc/adduser.conf entries are: # use password-based authentication for new users # defaultusepassword = "yes" | "no" defaultusepassword = "yes" # enable account password at creation # (the password will be prepended with a star if the account isn't enabled) # defaultenableaccount = "yes" | "no" defaultenableaccount = "yes" # allow blank passwords # defaultemptypassword = "yes" | "no" defaultemptypassword = "no" Requested by: alfred Reviewed by: alfred
* - assign a separate debugging flag for debugging messages regarding thehm2001-05-026-38/+33
| | | | | | | | valid keyword handling and the holiday file processing - don't issue a warning in case the holiday file is not found - enable inclusion of ../Makefile.inc to reenable compiling-in monitor support into isdnd - update manual page, add a comma and correct authors mail address
* Add a ``digi'' driver.brian2001-05-024-0/+210
| | | | | | | | | | | | | | | | | | This driver supports PCI Xr-based and ISA Xem Digiboard cards. dgm will go away soon if there are no problems reported. For now, configuring dgm into your kernel warns that you should be using digi. This driver is probably close to supporting Xi, Xe and Xeve cards, but I wouldn't expect them to work properly (hardware donations welcome). The digi_* pseudo-drivers are not drivers themselves but contain the BIOS and FEP/OS binaries for various digiboard cards and are auto-loaded and auto-unloaded by the digi driver at initialisation time. They *may* be configured into the kernel, but waste a lot of space if they are. They're intended to be left as modules. The digictl program is (mainly) used to re-initialise cards that have external port modules attached such as the PC/Xem.
* The pkg_version -c output will now call for a "make clean" before andbmah2001-04-301-2/+2
| | | | | | | | | after the port build/install. The former cleans up "dirty" port work directories that happen to be lying around, and the latter cleans up after we're done so that they won't trip up someone else. PR: ports/25106 Submitted by: tim@bishnet.net, nik, mwm@mired.org
* Fixed typos; removed whitespace at EOL.schweikh2001-04-301-25/+25
|
* Revert consequences of changes to mount.h, part 2.grog2001-04-291-2/+0
| | | | Requested by: bde
* Distinguish between rpc version numbers in the client cache to avoidalfred2001-04-281-1/+6
| | | | replying on the wrong port.
* handles.c belonged to the old stub lockd, nuke it.alfred2001-04-281-61/+0
|
* procs.c belonged to the old stub lockd, nuke it.alfred2001-04-281-592/+0
|
* mdoc(7) police: removed hard sentence break.ru2001-04-272-2/+4
|
* mdoc(7) police: Removed forgotten .Pp.ru2001-04-271-1/+0
|
* Document the "noError" variable.olgeni2001-04-262-6/+24
| | | | | | "noError" is used to ignore errors while processing sysinstall scripts. Approved by: jkh
* Change this from being alphabetically ordered to being more "practically"jkh2001-04-262-36/+36
| | | | | | ordered by most frequent preference. Submitted by: Adam <bsdx@looksharp.net>
* Bring in some bugfixes from NetBSD. I'm going to make a moreiedowse2001-04-261-17/+37
| | | | | | | | | | | | | | | extensive pass through the rpcbind code soon, but I might as well bring these in now. - (NetBSD util.c r1.5) Move the initialisation of `tbuf' to avoid a case where it could end up containing junk from the stack. This should address the issue in PR bin/26806. - (NetBSD util.c r1.6) Don't `merge' AF_LOCAL addresses, fix a few memory leaks. PR: bin/26806 Submitted by: Martin Blapp <mb@imp.ch> Obtained from: NetBSD
* Fix some quotes and mention that it's usually necessary to trainbrian2001-04-262-2/+44
| | | | your modem to the correct speed when setting up an incoming getty.
* Add back missing arguments to format strings.kris2001-04-263-4/+4
| | | | Reviewed by: hm
* Fix typo in prev commit - add missing commaache2001-04-261-2/+3
|
* Add /usr/X11R6/bin to the exported PATH. If /usr/local/bin is there,obrien2001-04-251-4/+10
| | | | | | | | /usr/X11R6/bin should be there. This helps all the ports that need to run `mkfontdir' and error out as many port maintainers do not realize `mkfontdir' isn't in the path. Prompted by: pkg_add pcemu
* Fix compiling without -O, some dead code was using non-existant functions,alfred2001-04-252-6/+10
| | | | | | | | | | | make the code not automatically dead but actually use the debug level in order to determine if output is needed. Fix non-existant from_addr() by #define'ing it to inet_ntoa(). Remove hardcoded -g from Makefile. Reported by: "John W. De Boskey" <jwd@bsdwins.com> Tested by: "John W. De Boskey" <jwd@bsdwins.com>
* Don't build pkg_sign tools if crypto is not installed, or is notwes2001-04-241-1/+2
| | | | | | being built. Reviewed by: kkenn
* Handle IP over IP (IPPROTO_IPV4) properly.brian2001-04-245-12/+32
| | | | | | | | | We now unwrap IP/IP and apply filter rules to both the outer layer (with ``set filter blah x.x.x.x y.y.y.y ipip'') and to the payload (reinterpreted by the filter rules). ``set log tcp/ip'' will now show both the outer wrapper and the (reinterpreted) payload contents.
* Reinstate one more old bugfix that got lost in the tirpc commit:iedowse2001-04-231-15/+20
| | | | | | | always look up -network and -mask addresses numerically before trying getnetbyname(). Without this, we may end up attempting DNS queries on silly names such as "127.0.0.0.my-domain.com". See the commit log from revisions 1.21 and 1.20 for further details.
* Include necessary header files, in preparation for fixing breakage ingrog2001-04-231-0/+2
| | | | | | sys/mount.h. Suggested by: phk
* When exporting a directory that is not a mountpoint, mountd repeatedlyiedowse2001-04-221-0/+8
| | | | | | | | | | | | | removes the last path component until the mount() succeeds. However, the code never checks if it has passed the mountpoint, so in some cases where the mount() never succeeds, it can end up applying the flags from a mounted filesystem to the underlying one. Add a sanity check to the code which removes the last path component: test that the fsid associated with the new path is the same as that of the old one. PR: bin/7872
* Our exports(5) syntax is rather "host-centric", while people comming fromobrien2001-04-222-0/+2
| | | | | a Sun background think in a more FS-centric mind set. Add a note to help the Sun backgrounded ones to not make invalid assumptions.
* Add an example borrowed from the FAQ showing a very commonly desiredobrien2001-04-222-4/+8
| | | | export in FreeBSD'ville for `make installworld' elsewhere.
* Add picobsd.asami2001-04-221-0/+1
|
* Don't pass NULL to the %s format.dd2001-04-221-2/+6
| | | | Reviewed by: kris
* mkisofs is in section 8, not section 1.dd2001-04-211-1/+1
|
* The introduction of IPv6 support from NetBSD's mountd invalidatediedowse2001-04-211-243/+207
| | | | | | | | | | | | | | | | | | | | | | | | a number of assumptions related to the parsing of options in /etc/exports, and missed a few necessary new error checks. The main problems related to netmasks: an IPv6 network address missing a netmask would result in the filesystem being exported to the whole IPv6 world, non-continuous netmasks would be made continuous without any warnings, and nothing prevented you specifying an IPv4 mask with an IPv6 address. This change addresses these issues. As a side-effect we now store netmasks in sockaddr structs (this matches the kernel interface, and is closer to the way it used to be). Add a flag OP_HAVEMASK to keep track of whether or not we have successfully got a mask from any source. Replace some mask-related helper functions with versions that use the sockaddr-based masks. Also tidy up get_net() and fix the code that interprets IPv4 partial networks such as "127.1" as network rather than host addresses. Properly zero out some structures that were ending up partially containing junk from the stack, fix a few formatting issues, and add a comment noting some assumptions about export arguments.
* Proper upper limit for mousechar start is UCHAR_MAX - 3, not UCHAR_MAXache2001-04-211-2/+2
| | | | | PR: 24437 Submitted by: Cejka Rudolf <cejkar@dcse.fee.vutbr.cz>
* Fix a long-standing bug relating to the handling of SIGHUP: mountdiedowse2001-04-211-4/+30
| | | | | | | | | | would call malloc, stdio and other library functions from the signal handler which is not safe due to reentrancy problems. Instead, add a simple handler that just sets a flag, and call the more complex function from main() when necessary. Unfortunately to be able to check this flag, we must expand the svc_run() call, but the RPC library makes that relatively easy to do.
* Turn on devinfo(8)msmith2001-04-211-0/+1
|
* Simple tool to print the device tree and resource usage by devices. Alsomsmith2001-04-212-0/+222
| | | | serves as an example of libdevinfo usage.
* Style changes. Not purfect, but closer to other Makefiles in the tree.obrien2001-04-202-31/+35
| | | | Approved by: fenner
* Add Greece to the FTP mirror list.jkh2001-04-202-0/+8
| | | | | Submitted by: Konstantinos Konstantinidis <kkonstan@duth.gr> PR: 26073
* Fix a problem with tests of the form "1.0" vs. "1.0a".bmah2001-04-192-3/+15
| | | | | | MFC candidate. Pointed out by: knu
* Remove section from bugs that says we don't support client locks.alfred2001-04-191-11/+0
| | | | Pointed out by: Martin Blapp <mb@imp.ch>
* remove debug code left in by accidentalfred2001-04-181-7/+0
|
* ``An undocumented feature is a bug.''joerg2001-04-182-8/+8
| | | | | | Turn on my asbesto suit, and document the DD and Wizard mode menu keys. It's a nuisance to always have to look them up in the source code when needed.
OpenPOWER on IntegriCloud