summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Now that we've got it, use FDOPT_NOERRLOG for fdformat and fdwrite tojoerg2001-06-262-2/+9
| | | | | | avoid blasting the syslog with error messages from bad floppies. Both tools have their own error reporting anyway (which could easily be cluttered by the syslog output on your terminal).
* Implement the -I option that uses the FD_READID ioctl in order to readjoerg2001-06-262-3/+107
| | | | sector ID fields from a floppy, and display them.
* Add appropriate includes and prototypes; staticize; set WARNS=2. Alsodd2001-06-262-6/+11
| | | | | | minor Makefile nits. Submitted by: Mike Barcroft <mike@q9media.com>
* Back out previous commit; this can't compile with WARNS=2 becausedd2001-06-261-1/+0
| | | | | | xdr.h isn't warning-free. Submitted by: ru
* Actually implement -a as documented since import (set access point density).brooks2001-06-262-9/+8
| | | | | | | Remove documentation for short-lived usage as "print keys in ASCII." PR: bin/21803 MFC after: 1 week
* Output the current TX rate when showing status.brooks2001-06-261-0/+11
| | | | PR: bin/25470
* ANSIize, staticize, and unsignedize; set WARNS=2.dd2001-06-252-14/+11
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Constify and set WARNS=2.dd2001-06-252-2/+3
| | | | | Submitted by: Mike Barcroft <mike@q9media.com Reviewed by: md5(1)
* Add an acceleration option to mousedgreid2001-06-252-8/+31
| | | | | | | PR: 28369 Submitted by: Daniel O'Connor <darius@dons.net.au> manpage reviewed by: ru MFC after: 10 days
* Make 'lpc clean' somewhat safer. Add an 'lpc tclean' command, which allowsgad2001-06-256-47/+351
| | | | | | | | | | | | | | | | | | | one to see what files would be removed *if* an 'lpc clean' is done. 'tclean' will remove no files, and is therefore not a privileged command. Also, both 'lpc clean' and 'lpc tclean' will now look for 'core' files in spool directories (but not remove them). They also print out an extra line of info when a datafile to be removed is a symlink (from 'lpr -s'), saying what file it is a symlink to. The 'lpc clean' commands also now print out a summary line saying how many queues were checked, how many files were removed (or "would be" removed, for tclean), and how much disk space is involved. For the benefit of those who have many print queues, 'lpc clean all' will only print out the names of print queues where some "interesting" files were found, instead of printing out a header-line for every queue in your printcap file. Reviewed by: freebsd-print@bostonradio.org freebsd-audit@FreeBSD.org MFC after: 2 weeks
* Add two new options for lpd: -c will log all connection-errors to syslog,gad2001-06-252-32/+168
| | | | | | | | | | | | | | | while -w allows connection from non-reserved ports. Also improves the helpfulness of various connection-error messages. The changes for IPv6 added back in the reserved-port check which was mistakenly dropped from lpd in 1997 (copying a change from openbsd). It is best to have that check in place, but the check breaks lpr's from some implementations of lpr/lpd for Windows. The -w option is for those admins who need to accept jobs from non-reserved ports, the -c option is for admins who would like a print-server machine to log all failed connection-attempts to syslog. Reviewed by: freebsd-audit@FreeBSD.org freebsd-print@bostonradio.org MFC after: 2 weeks
* Xref to extattr(2) and extattr(3).dd2001-06-242-2/+4
|
* Nuke unused variables.dd2001-06-2410-19/+2
|
* Xref extattr_set_file(2).dd2001-06-241-0/+1
|
* Xref extattr_get_file(2).dd2001-06-241-0/+1
|
* Add a namespace argument to one of the examples.dd2001-06-241-1/+1
|
* Add missing includes and sort includes.dd2001-06-241-4/+8
|
* Include missing header files.dd2001-06-241-0/+1
|
* Include missing header files which define functions for which gcc hasdd2001-06-248-0/+15
| | | | builtints (e.g., exit, strcmp).
* Include stdlib.h for exit(3).dd2001-06-241-0/+1
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Constify and set WARNS=2.dd2001-06-242-1/+2
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
* Constify, add a prototype, and set WARNS=2.dd2001-06-242-3/+3
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
* Constify and set WARNS=2.dd2001-06-242-4/+5
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> Reviewed by: md5(1)
* Clean up the addrmerge() function, which was over-complicated andiedowse2001-06-241-136/+120
| | | | | | | | | | | | | | | | | contained a number of memory leaks. The changes include: - Add a comment describing what addrmerge() does. - Deal with 0.0.0.0./::. or AF_LOCAL callers correctly. - Use rpcbind_get_conf() instead of getnetconfigent() so we don't have to remember to free the returned netconfig struct. - Make just one pass through the ifaddrs list; we can pick up a fallback interface address in the same pass as the netmask comparison. - Define and use SA2SIN* macros to avoid the need for loads of protocol-specific local variables. - Use mostly protocol-independent code for building the netbuf version of the address to be returned. - Use the common cleanup code for virtually all error and non-error cases, fixing a number of memory leaks.
* Constify, staticize and add a missing include; add WARNS?=2.des2001-06-242-4/+7
| | | | | Submitted by: Mike Barcroft <mike@q9media.com> MFC after: 2 weeks
* Don't add -Wall, as it's a compiler specific flag.dwmalone2001-06-241-1/+1
|
* Fix most of the warnings given by WARNS=2.dwmalone2001-06-243-105/+114
|
* Remove duplicate words.dd2001-06-242-2/+2
|
* Fix some return-value brain-damage in forward_register(). Thisiedowse2001-06-231-16/+21
| | | | | | | | | | | | | | function has a return type of u_int32_t, into which it was somehow supposed to encode: * A valid 32-bit XID (which could be any value including 0). * 0, meaning a duplicate request. * -1, meaning a malloc failed (!); We now ensure that all XIDs are non-zero, and pass the XID out via a pointer argument. In forward_find() and free_slot_by_xid(), remove an unnecessary and confusing test for a negative result from an unsigned modulo operation, but add an unnecessary cast to highlight why.
* remove -g -O0, that was only for debugging...ben2001-06-231-1/+1
|
* Don't dereference a pointer after freeing that pointer.ben2001-06-231-2/+3
| | | | | | | PR: 27990 Reviewed by: dd, phk Tested by: dd MFC after: 2 weeks
* Increase the buffer sizes for the build deps, run deps, and the linedd2001-06-221-3/+3
| | | | | | | itself verbatim from INDEX. This fixes seg. faults with newer INDEX files which have some gnome ports with outrageously long run deps. Approved by: jkh
* Explicitly add a default route in ppp's install profilebrian2001-06-211-0/+1
|
* Use 'LIBS+= ...' instead of 'LIBS= ...' in the generated makefilejoe2001-06-201-1/+1
| | | | | | | | so that the user can override libraries at build time. This is makes it easier to cross-compile crunch builds. Suggested by: luigi MFC after: 3 days
* Avoid using too many args for ``set m[tr]u''brian2001-06-202-4/+16
| | | | This needs to work with OpenBSD's groff too :(
* o Add a -a flag for changing/getting the ALTPIN setting for a digi port.brian2001-06-202-19/+99
| | | | | o For the -i switch, only show the device if more than one is given on the command line.
* Work around the problem in RELENG_4 where the file doesn't actuallydougb2001-06-201-7/+13
| | | | | | | | | | exist, and therefore mm_install is returning the "fail" value of the test instead of the "success" value for install. This change is a no-op on HEAD, but since the only harm on RELENG_4 ATM is a spurious warning it can follow the usual MFC practice. Submitted by: A cast of thousands :-/
* Print "-" instead of "" in the grace field if there is no gracedd2001-06-191-2/+2
| | | | | | | period; this keeps the number of whitespace-separated fields constant. PR: 15739, 23908 Submitted by: Valentin Nechayev <netch@netch.kiev.ua>
* CND has been unused for two years, and RND has been unused for fivedd2001-06-191-1/+1
| | | | | | | years; remove them from CFLAGS. PR: 23712 Submitted by: Volker Stolz <stolz@i2.informatik.rwth-aachen.de>
* Call va_start/va_end for each call to vfprintfbrian2001-06-181-2/+4
| | | | Obtained from: OpenBSD
* Pick up the correct headers from sys/contrib/ipfilter/netinet.ru2001-06-184-21/+14
|
* Add support for stateful MPPE (microsoft encryption) providingbrian2001-06-1811-188/+669
| | | | | | | | | | | | | | | encryption compatibility with Windows 2000. Stateful encryption uses less CPU but is bad on lossy transports. The ``set mppe'' command has been expanded. If it's used with any arguments, ppp will insist on encryption, closing LCP if the other end refuses. Unfortunately, Microsoft have abused the CCP reset request so that receiving a reset request does not result in a reset ack when using MPPE... Sponsored by: Monzoon Networks AG and FreeBSD Services Limited
* Handle hardware-imposed MTU/MRU limitations. PPPoE will no longerbrian2001-06-1821-80/+246
| | | | | | | | | | | | allow MRU/MTU negotiations to exceed 1492. Add an optional ``max'' specifier to ``set m[rt]u'', ie. set mtu max 1480 Bump the ppp version number. Sponsored by: Monzoon Networks AG and FreeBSD Services Limited
* Add a -d command-line option; when used in conjunction with -f, rarpdroam2001-06-183-49/+129
| | | | | | | | | | | sends error messages to stderr, normal output to stdout, instead of logging everything via syslog. Turn off the FORMAT_AUDIT in the Makefile, until I can figure out how to disable the check for one single line in the source :( Reviewed by: dd, silence on -audit MFC after: 1 month
* Supported to select a keymap for PC-98x1.nyan2001-06-174-0/+44
|
* Don't call printf without a format string (harmless in this case).dd2001-06-171-2/+2
|
* Correct a typo in an error message.dd2001-06-161-1/+1
|
* Comply with POSIX rules:jlemon2001-06-161-2/+2
| | | | | | | o Use %u for printing u_int. o Cast sizeof() to u_long, and print with %lu Reviewed by: wollman
* Give inetd the ability to manage unix domain sockets. Details ofdwmalone2001-06-163-12/+169
| | | | | | | | | | | how to use this feature are in the man page. This is based on work by Lyndon Nerenberg. (The only difficult part about this patch is the fact that you can't fchown a unix domain socket, which means the sockets must be put in a secure directory). Reviewed by: dillon
* Remove ncheck in an example; FreeBSD does not have it.schweikh2001-06-161-1/+3
| | | | | | PR: 10158 Submitted by: Remy Card <card@ens.uvsq.fr> MFC after: 2 weeks
OpenPOWER on IntegriCloud