lukem
eae82b3d06
#define _PATH_BIN_RCMD in common_source/pathnames.h rather than using
...
wacky Makefile rules to compile rcmd.c
2003-10-19 05:51:44 +00:00
itojun
686afb7f65
safer use of realloc
2003-10-16 06:22:09 +00:00
itojun
94a111ae53
safer realloc.
...
sizeof() for malloc was mistaken in socksetup().
2003-10-16 03:03:04 +00:00
itojun
67ad87844e
plug memory leak. oenbsd-pr-3425
2003-09-01 00:21:08 +00:00
agc
326b2259b7
Move UCB-licensed code from 4-clause to 3-clause licence.
...
Patches provided by Joel Baker in PR 22366, verified by myself.
2003-08-07 11:25:11 +00:00
itojun
85da88227f
use strlcpy/strlcat.
...
[fix off-by-one in displayq.c]
2003-05-17 20:46:42 +00:00
wiz
37a402fc28
IPv4/IPv6, not IPV4/IPV6.
2003-03-15 19:26:08 +00:00
wiz
990562bfef
.Nm does not need a dummy argument ("") before punctuation or
...
for correct formatting of the SYNOPSIS any longer.
2003-02-25 10:34:36 +00:00
wiz
7d667a5da9
Stanford, not Standford. From Chad Loder.
2003-01-06 12:18:02 +00:00
thorpej
2b3b2f08d6
Rather than relying on pure luck to get the log file on STDERR_FILENO,
...
explictly dup2 the log file dscriptor to STDERR_FILENO and close the
original.
2002-10-26 01:47:52 +00:00
thorpej
d2ed7ebdd1
* Use STDOUT_FILENO instead of 1.
...
* Pass the file descriptor to request_init() (libwrap) so that
it can actually do something useful later in fromhost().
2002-10-26 01:46:31 +00:00
itojun
c41e40e20e
set IPV6_V6ONLY socket option for AF_INET6 socket, to avoid
...
complicated access control issue due to IPv4 mapped address.
2002-09-24 13:31:33 +00:00
lukem
1b2d905cd0
cast "%ld", xxx.tv_sec to a long
2002-09-20 04:12:42 +00:00
mycroft
59edfd2c03
Simplify the accept() code a little -- sockaddr_storage is fine for both
...
AF_LOCAL and AF_INET{,6}.
2002-09-19 20:35:56 +00:00
mycroft
4082cae6ac
If we exit because the pid file is locked, syslog that.
2002-09-19 20:22:32 +00:00
mycroft
e1a3e519ec
select() -> poll(), nanosleep()
2002-09-19 20:08:58 +00:00
lukem
17d72c8a6b
use NETBSDSRCDIR as appropriate
2002-09-18 03:54:26 +00:00
abs
2cbe5b958f
Add back __attribute__() data for pstatus() removed by error in last commit.
...
Noted by wiz.
2002-09-04 13:49:20 +00:00
abs
8531949548
When -r is given actually pass the file through of, and also enable if.
2002-09-03 18:35:11 +00:00
wiz
a05630c34e
Minor mdoc nit.
2002-08-12 18:08:13 +00:00
itojun
166e26e413
add libwrap support for lpd (you need to pass all tests to print,
...
so you will want "+" in hosts.lpd then restrict by hosts.allow/deny).
setsockopt(SO_REUSEPORT) while i'm here.
2002-08-12 18:03:41 +00:00
grant
cc65da74ac
specify the reason when aborting with "Malformed from address",
...
suggested by Matt Green.
2002-08-11 07:04:00 +00:00
itojun
1917442aa9
die if fd_set overruns
2002-08-09 02:40:57 +00:00
jschauma
a1e7e17b3e
Fix typo pointed out by haes at shrubbery dot net in PR bin/17396
...
"filter to be use" -> "filter to be used"
2002-07-31 01:49:48 +00:00
wiz
895dc72a69
Unifdef __STDC__. Remove __P(). ANSIfy.
2002-07-14 15:27:58 +00:00
hubertf
534ff5d5e9
This fixes various little problems in the lpd source.
...
lpd.c bogus 'c' option in getopt option string
printjob.c spelling "prstatic inter" -> "printer"
finish ANSIfication
recvjob.c finish ANSIfication
Patch contributed by Brian Ginsbach <ginsbach@cray.com> in PR 17520
2002-07-09 01:12:35 +00:00
itojun
b4daa6bb72
avoid hardcoded octals. openbsd
2002-06-08 23:40:12 +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
34828cce4a
Convert .Xr to non-existing program to Ic.
2002-01-19 03:22:53 +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
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
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
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
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
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
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
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