| Age | Commit message (Collapse) | Author |
|
riastradh recommends using array[0] instead of pointer.
|
|
http://mail-index.netbsd.org/tech-net/2014/12/13/msg004898.html
|
|
where it was intended.
|
|
|
|
conflict with the soon to be added getline(3) libc function.
|
|
|
|
same second are printed in order.
Fixes PR bin/37346
|
|
|
|
|
|
|
|
|
|
It reduces code and complexity and at the same time allows as to use symbolic
ports instead of just numeric everywhere.
|
|
return value, we might as well return it. (fixes lpq -a, and probably lpd)
|
|
This PR claims that MacOSX 10.1 cannot print postscript files to a NetBSD
lpd because the mac will tag the file with an "o" for postscript, which
we do not handle. Rather than simply mapping o -> f as was done in the
PR, or mapping o -> l as was done in FreeBSD, I have implemented full
support for the "o" option. If a postscript filter does not exist in the
printcap file however, it will default to "l" handling.
With this change, you can now specify a "pf" or postscript filter in your
printcap, and have it handle postscript files sent to it with "lpr -o".
The "o" format in lpd is specified in RFC1179 as being a valid format flag.
|
|
uninitialized, causing the free() in out: to explode. Initialize sd to NULL.
|
|
Lpd has the ability to start on a port other than "printer" but has no
way to connect to a remote lpd on that port. This change adds the
ability to specify port@host in the rm element of printcap(5). Tested to
work with both a standard lpd setup and one running on special ports.
|
|
- factor out commonly used code.
- constify
- use warn/warnx instead of printf
|
|
|
|
|
|
Patches provided by Joel Baker in PR 22366, verified by myself.
|
|
|
|
|
|
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.
|
|
gethostname(3) do not necessarily represent local host addrses.
pointed out by: Chuck Cranor
|
|
|
|
From: hiro@takechi.org
XXX checkremote() should be improved. gethostname -> getaddrinfo is
not the right thing to do, we cannot assume DNS FQDNs is configured
as hostname. if the goal here is to check if it is really remote or not,
getifaddrs() is the way to go.
|
|
the behavior itself has a room for debate. (why we retry on ECONNREFUSED?)
From: SHIMIZU Ryo <ryo@misakimix.org>
|
|
NetBSD PR: 9050
From: Feico Dillema
|
|
in common.c into separate files - this slighly cuts down size of pac(1)
not that it's really significant, but every bit counts ....
|
|
|
|
|
|
- ensure hostname from gethostname() is nul-terminated in all cases
- minor KNF
- use MAXHOSTNAMELEN over various other values/defines
- be safe will buffers that hold hostnames
|
|
|
|
- be safe with unlinking files (from freebsd)
- remove register
- clean up $NetBSD$'s.
- use inet_ntoa() in one place (from openbsd)
- nul terminate after a bunch of strncpy()'s
- #ifdef __STDC__ rather than #if (from freebsd)
- be safe with a bunch of string operations (from freebsd)
- use warn()/err() over home grown versions (some from freebsd)
- rename warn() to nodaemon() to remove conflict with above
- check errno from failed kill(2) against ESRCH (from freebsd)
- use getopt() rather than home grown versions (from freebsd)
- clean up a bunch of man pages (some from freebsd)
- check for hostname spoof (from freebsd)
- use POSIX wait() interfaces
- use sysconf(_SC_OPEN_MAX) in preference to NOFILE (from freebsd)
- deal with fork() failure
- index/rindex -> strchr/strrchr (some from freebsd)
- add B57600 and B115200 speeds (from freebsd)
- some KNF
- be safe with files passed in over the network (some from freebsd)
- check return value of malloc(), calloc() and strdup()
|
|
|
|
|
|
|
|
|
|
-- Use seteuid() to only give lpr, lprm, lpq and lpc root when they
need it from matthew green <mrg@mame.mu.oz.au>
|
|
|
|
|
|
|
|
|
|
|