itojun
b4daa6bb72
avoid hardcoded octals. openbsd
2002-06-08 23:40:12 +00:00
itojun
5da007343b
avoid hardcoded octals
2002-06-08 23:37:47 +00:00
wiz
01ff6324be
Make ngroups, which is the size of a static array, static too. From
...
Todd Miller in bin/16871.
2002-05-19 17:38:36 +00:00
ross
2a76afae02
Generate <>& symbolically. I'm avoiding .../dist/... directories for now.
2002-02-08 01:36:18 +00:00
wiz
b36c0a5406
deamon -> daemon
2002-01-21 14:42:26 +00:00
wiz
5d2bc3031d
empty line -> .Pp; sort sections.
2002-01-19 03:24:14 +00:00
wiz
00dce9aae8
Sort sections, whitespace nit.
2002-01-19 03:23:47 +00:00
wiz
6051a9a396
Sort sections.
2002-01-19 03:23:11 +00:00
wiz
34828cce4a
Convert .Xr to non-existing program to Ic.
2002-01-19 03:22:53 +00:00
wiz
d8081e42ef
Sort SEE ALSO and sections.
2002-01-19 03:22:19 +00:00
wiz
51d0450786
Whitespace and punctuation nits, use standard headers.
2002-01-19 03:21:59 +00:00
tv
8e6f7afb5b
MKfoo=no -> NOfoo
2001-12-12 01:48:43 +00:00
christos
e363b58375
Make sure that the we have a valid pathname. [We did the check too late,
...
and we had a buffer overflow]. Bug found by Sebastian Krahmer of SuSE,
fix inspired by patch 008 for OpenBSD-3.0.
2001-12-04 22:52:44 +00:00
wiz
1fd7eeefcd
"than" instead of "then".
2001-11-21 19:14:19 +00:00
enami
6737e7d6b2
Test absense of command differently to avoid null pointer deference
...
when only whitespaces are given.
2001-11-14 03:01:15 +00:00
mjl
c903850da8
Replace 1 and 2 with STDOUT_FILENO and STDERR_FILENO.
...
ANSIfy and constify.
2001-10-09 02:15:37 +00:00
wiz
4c99916337
va_{start,end} audit:
...
Make sure that each va_start has one and only one matching va_end,
especially in error cases.
If the va_list is used multiple times, do multiple va_starts/va_ends.
If a function gets va_list as argument, don't let it use va_end (since
it's the callers responsibility).
Improved by comments from enami and christos -- thanks!
Heimdal/krb4/KAME changes already fed back, rest to follow.
Inspired by, but not not based on, OpenBSD.
2001-09-24 13:22:25 +00:00
wiz
456dff6cb8
Spell 'occurred' with two 'r's.
2001-09-16 16:34:23 +00:00
itojun
7cdedd5c84
use strlcpy. from openbsd
2001-08-30 00:53:53 +00:00
itojun
c9e786ce9e
security fix from openbsd:
...
Fix buffer oflow reading from queue file. While we are at it, crank
the size of buffers that can hold filenames to MAXPATHLEN.
2001-08-30 00:51:50 +00:00
mjl
98e1bdc90d
Add -W parameter to lpd to disable check for a reserved port,
...
this is needed to get Win2k print to a NetBSD box. Heavily
inspired by FreeBSD.
2001-08-11 01:04:57 +00:00
mrg
b5ca908e21
extend file size lossage message.
2001-06-25 16:40:50 +00:00
mrg
e1633c19d7
printer of "" becomes the DEFLP (the default printer, "lp")
2001-06-25 15:29:12 +00:00
mrg
a062d79672
use DEFLP instead of "lp".
2001-06-25 11:04:51 +00:00
wiz
6db93e0e58
Replace some .Xr with .Ic (programs non-existing or not in base system).
2001-05-08 17:20:02 +00:00
wiz
8357706e0f
lowercase Lpq in xref, and some whitespace fixes.
2001-04-09 12:50:59 +00:00
wiz
8a9489155e
Fix possible security problem (euid swapout in error handling).
...
Based on a similar patch in OpenBSD, reported there by
j@ida.interface-business.de .
Fix the second occurrance of a similar problem in that file, too, though.
2001-04-05 13:30:02 +00:00
wiz
2ff26b9838
Improve markup, and add sections to xrefs, as well as the obligatory
...
whitespace fixes.
2001-04-05 11:49:14 +00:00
simonb
a378517ea4
80 column police.
2001-03-28 03:17:41 +00:00
cgd
25bdbb661e
convert to use getprogname()
2001-02-19 23:22:40 +00:00
itojun
bcbf09100a
listen to the port number specified on argument, as advertised
...
in document. part of PR 12112 from feico@pasta.cs.uit.no .
2001-02-02 14:20:33 +00:00
lukem
443a19e035
convert to using .WAIT
2001-01-09 03:13:39 +00:00
enami
270db080e9
Use PRINTOBJDIR.
2001-01-07 08:00:54 +00:00
lukem
c2aa46e7c2
use %ll_ instead of the less standard %q_
2001-01-05 03:27:26 +00:00
lukem
279552d3db
fix up various .Nm abuses:
...
- keep the case consistent between the actual name and what's referenced.
e.g, if it's `foo', don't use '.Nm Foo' at the start of a sentence.
- remove unnecessary `.Nm foo' after the first occurrence (except for
using `.Nm ""' if there's stuff following, or for the 2nd and so on
occurrences in a SYNOPSIS
- use Sx, Ic, Li, Em, Sq, and Xr as appropriate
2000-11-07 06:43:24 +00:00
is
d8302e2d73
More format string cleanups by sommerfeld.
2000-10-11 20:23:46 +00:00
jdolecek
a93350bb37
document output format, so that users would know exact meaning
...
of printed statistics
2000-10-04 11:40:51 +00:00
itojun
78907e0169
don't give result of function directly into syslog, use "%s".
2000-10-03 13:54:31 +00:00
scw
5c0e061414
Free the bind-address list entries, as well as the list itself.
2000-10-03 13:28:27 +00:00
scw
97a603e5b0
Add a "-b" option to specify one or more local addresses to bind
...
to instead of the default INADDR_ANY.
2000-10-03 11:45:30 +00:00
itojun
c8b98b814c
syslog() string format hole.
...
http://www.securityfocus.com/templates/archive.pike?start=2000-09-24&fromthread=0&mid=85023&list=1&end=2000-09-30&threads=0&
2000-09-26 17:44:38 +00:00
sommerfeld
c829aa7773
Fix ingroup() to not check gid against trailing groups not set by
...
getgroups().
Reported to security-officer, but not a security hole, since
"operator" is not gid 0.
2000-08-24 17:40:16 +00:00
itohy
880baa236b
Don't pass null pointer to syslog.
...
lpd[6813]: mail sent to user itohy about job foo.ps on printer lp ((null))
^^^^^^
2000-08-24 02:03:54 +00:00
itojun
f714bfb0d8
rewrite local address detection code, to use getifaddrs(3), not gethostname(3).
...
gethostname(3) do not necessarily represent local host addrses.
pointed out by: Chuck Cranor
2000-08-09 14:28:50 +00:00
jdolecek
9e1ce523c5
account(): fix so that number of copies is optional and whitespace
...
between it and hostname:username is optional as well (some software relies
in this); while here, covert to use sscanf() instead of explicit parse code,
sprinkle some comments
dumpit(): change so that the price is total price for this entry, instead of
beeing price per copy
Addresses bin/9996 by Brian Stark, though the implementation differs from
patch code attached to it.
2000-07-16 21:33:26 +00:00
matt
3ab02a8704
More #include <stdlib.h> string, etc. cleanup
2000-07-04 20:27:35 +00:00
mycroft
0047d53157
Get rid of the stupid hack that makes this lose when ${CC} is more than one word.
2000-06-05 17:41:19 +00:00
enami
dc0efa126e
Just remove the first word so that rcmd.c compiles even if the command line
...
contains same substrings with the name of compiler.
2000-05-31 07:34:45 +00:00
itojun
ed26506c25
usr.sbin/lpr/lpd now compiles lib/libc/net/rcmd.c on its own, to avoid
...
use of non-exported function __ivaliduser{,_sa}().
we cannot make __ivaliduser{,_sa}() static yet, since doing that would choke
compiled lpd binaries. we should do it on next libc major version bump.
added a memo on lib/libc/shlib_version.
2000-05-30 01:07:43 +00:00
thorpej
9581f118ec
Need <string.h> for memset() prototype.
2000-04-30 15:47:55 +00:00