summaryrefslogtreecommitdiffstats
path: root/usr.sbin
Commit message (Collapse)AuthorAgeFilesLines
* Remove whitespace at EOL.dd2001-07-155-24/+24
|
* Constify, add some prototypes, and set WARNS=2.dd2001-07-155-8/+14
| | | | Submitted by: Mike Barcroft <mike@q9media.com>
* Change lpd to perform sanity and safety checks on control files as itgad2001-07-154-6/+931
| | | | | | | | | | | | receives them from other hosts. This is meant to protect from both nefarious users (which maybe broke into some remote host that we accept print jobs from), and broken implementations of lpr on other platforms. This is done by changing recvjob.c to call the new ctl_renametf() routine in the new common_source/ctlinfo.[ch] files. This will not affect jobs coming via lpr on the local machine. Reviewed by: freebsd-print@bostonradio.org & freebsd-audit MFC after: 16 days
* Replace a call to 'alloca', thus avoiding an error when compiling ongad2001-07-151-8/+14
| | | | | | | freebsd/alpha with -ansi (and on some non-fbsd platforms). This change can only affect the access checking of 'lpr -r'. MFC after: 1 week
* Get rid of one compile-time warning by changing an 'int' to a 'size_t'.gad2001-07-151-6/+10
| | | | MFC after: 1 week
* Get lpr/pac.c to compile without warnings with BDECFLAGSgad2001-07-151-15/+15
| | | | MFC after: 1 week
* Replace three subtly-wrong calls to strncpy with calls to strlcpy, andgad2001-07-152-15/+13
| | | | | | use (size_t) in a few places to avoid compile-time warnings on alpha. MFC after: 1 week
* Fix most of the warnings generated by compiling lpr with -Wnon-const-format,gad2001-07-157-21/+27
| | | | | | | | | often by just telling gcc that some internal routine is "__printflike" (work done by Kris Kennaway <kris@FreeBSD.org>). Also fix the new warnings which show up once gcc starts checking the "printf-like parameters" passed to those routines. MFC after: 1 week
* Change signal-handling to reset SIGCHLD to SIGDFLT instead of SIG_IGN.gad2001-07-142-6/+40
| | | | | | | | | | This fixes a problem with using print filters (if=, of=, etc) that showed up in -current around June 20th. That problem initially reported by Georg-W Koltermann <gwk@sgi.com>, while most of the investigation that led to this fix was done by Anton Berezin <tobez@FreeBSD.org>. Reviewed by: freebsd-print@bostonradio.org MFC after: 1 week
* This is a selection of essentially cosmetic changes:iedowse2001-07-142-38/+42
| | | | | | | | | | | | | | - Use '\0' for a char instead of NULL. - Explicitly compare against the global `nullstring' to determine if a non-NULL uaddr is not malloc'd. - Remove some unnecessary casting of the argument to free(). - In rpcbproc_callit_com(), move the freeing of m_uaddr to the cleanup code at the end of the function. - To avoid confusion and possible alignment problems, change netbufdup() to allocate the netbuf struct and the sockaddr buffer separately, and change netbuffree() accordingly. This makes it produce netbufs that are consistent with all other netbufs in rpcbind.
* Fix a memory leak in check_bound() by freeing the buffer area ofiedowse2001-07-141-0/+2
| | | | the netbuf before freeing the netbuf structure itself.
* Add missing #include <stdio.h>.iedowse2001-07-141-1/+2
| | | | | Fix an off-by-one error in logit() when determining if a procedure number has a known name.
* Simplify to bitmaskcmp() to use the obvious approach instead ofiedowse2001-07-141-22/+19
| | | | | | | | | | | | comparing bit by bit. Make the logic in in6_fillscopeid() match that in our ifconfig(8): only set the scope ID if there is one in the address and none in sin6_scope_id. Correct a comment in network_init() that didn't make sense; it was probably never updated after it was pasted from similar code in addrmerge().
* Use snprintf instead of sprintf.iedowse2001-07-141-4/+5
|
* Avoid a harmless compiler warning, and add a missing \n to aiedowse2001-07-141-1/+3
| | | | | | debugging fprintf. Submitted by: Martin Blapp <mb@imp.ch>
* Put on my peril-sensitive sunglasses and remove the POLA-violatingpeter2001-07-141-0/+7
| | | | | | | stealth hints loading. 'make release' has been fixed to not need this now anyway. If you want static hints, specify it explicitly. Hey! Why did it suddenly get so dark??
* Remove the old machine symlink first.peter2001-07-141-3/+2
|
* Tweak the Alpha partition warning wording and comment a little.obrien2001-07-132-10/+10
|
* Rudamentary attempt to reconize when `a' is not the first partition on theobrien2001-07-132-2/+46
| | | | | | | Alpha. (the Alpha will not boot except from the first partition) PR: 23064 Submitted by: Kees Jan Koster <kjkoster@kjkoster.org>
* Repeat after me: "when reporting `file not found', perform a little bit ofobrien2001-07-131-1/+1
| | | | useful HCI consideration and tell which file was being looked for".
* Whine if we discover an unknown option. This program doesn't usedd2001-07-131-0/+2
| | | | | | getopt(3) (and can't be converted without breaking compatibility), and it's very irritating to have it silently DTWT if one combines options together (e.g., "-msS domain,server").
* mdoc(7) police: -xwidth has been fold into -width.ru2001-07-131-1/+1
|
* Perform MSS fixups on incoming packets as well as outgoing.brian2001-07-131-32/+43
| | | | MFC after: 1 week
* Introduce an "include" directive. It takes one argument, a filenamedd2001-07-124-8/+102
| | | | | | | | | | | | | | to be included into this one. This works the same way as #include does in C; as far as the user is concerned, the included file is inlined into the current one. Since config(8) is no longer limited to working on one user-supplied file, printing just a line number in an error message is not sufficient. The new global variable yyfile represents the file currently being parsed, and must be printed as well. Reviewed by: imp Obtained from: OpenBSD
* Fix IP address checking, now we allow addresses like 172.17.0.0/23 asjesper2001-07-121-12/+18
| | | | | | | | | a host address PR: misc/27799 Reviewed by: jkh Approved by: jkh MFC after: 1 month
* Don't try to compile v6-only files if NOINET6.fenner2001-07-111-6/+8
| | | | PR: misc/28287 , misc/28288
* Add ftp2.jp.freebsd.org as IPv6 ready mirror server.ume2001-07-112-2/+6
| | | | | | Now, ftp2.jp.freebsd.org is serverd by IIJ. MFC after: 1 week
* mdoc(7) police: removed punctuation after the last SEE ALSO xref.ru2001-07-101-1/+1
|
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-1087-87/+87
|
* bzip2(1) is in the base system - we don't need /usr/local/bin in the PATHsobomax2001-07-101-1/+1
| | | | anymore.
* mdoc(7) police: removed HISTORY info from the .Os call.ru2001-07-103-3/+3
|
* mdoc(7) police: eliminate warnings, fix markup.ru2001-07-101-10/+6
|
* mdoc(7) police: remove extraneous .Pp before and/or after .Sh.dd2001-07-0944-82/+0
|
* Fix the type of the NULL arg to execl()brian2001-07-0922-38/+43
| | | | Idea from: Theo de Raadt <deraadt@openbsd.org>
* Fix the type of the last arg to execl()brian2001-07-091-1/+1
| | | | Obtained from: OpenBSD
* Staticise the OpenBSD SHA1_End() functionbrian2001-07-091-1/+1
|
* Stay (backwards-)compatible with OpenBSD's groffbrian2001-07-092-2/+6
|
* Add a ``nat proto'' command -- similar to natd(8)'s -redirect_proto switch.brian2001-07-095-0/+117
| | | | MFC after: 3 weeks
* Oops, remove a `mouse_move_delayed++' that shouldn't have beeniedowse2001-07-081-3/+1
| | | | | added in the previous commit; this variable is already incremented in the previous `if' condition.
* The state machine for 3-button emulation defers some button eventsiedowse2001-07-081-4/+29
| | | | | | | | | | | | | | until a 20ms select(2) timeout occurs, but if there is a continuous stream of movement events, button events can be delayed indefinitely because the select never has to wait long enough for a timeout. The delay and mouse event reordering that result are very noticable and sometimes quite frustrating when dragging windows etc. in X. Add a simple mechanism that avoids this re-ordering. While a button event is deferred, we discard up to 3 movement events to allow for mouse jitter. If more movement events occur, then we immediately timeout the deferred button event and let the movement proceed. This change only affects the 3-button emulation case.
* Don't try to dereference the -1th ccp algorithm array entry when webrian2001-07-071-1/+1
| | | | open CCP with no algorithm.
* When we miss one or more packets in stateful mode *and* need tobrian2001-07-071-7/+10
| | | | | | | | | | | perform a key change, *and* our sequence numbers have wrapped, ensure that the number of key changes is calculated correctly. The previous code counted down from a negative number to zero, re-encrypting the current key on each iteration - this took some time and strangely enough got the answer wrong !!! Fix a(nother) spelling mistake while I'm there.
* Spell stateful properlybrian2001-07-064-11/+11
| | | | | Inconsistently done by: brian Spotted by: ru
* mdoc(7) police: sort SEE ALSO xrefs (sort -b -f +2 -3 +1 -2).ru2001-07-0619-41/+42
|
* mdoc(7) police: added missing .Ek call.ru2001-07-061-0/+1
|
* make it compile on alpha againmjacob2001-07-051-1/+2
|
* Don't override the default BINMODE.ru2001-07-051-2/+0
| | | | Submitted by: bde
* mdoc(7) police: removed hard sentence breaks, sorted xrefs.ru2001-07-052-18/+34
|
* Mark relevant functions __printflike()/__printf0like() and silence some ofkris2001-07-0518-47/+47
| | | | | | the non-constant format string warnings. MFC after: 1 week
* mdoc(7) police: cosmetics.ru2001-07-051-1/+3
|
OpenPOWER on IntegriCloud