1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-20 11:11:24 +00:00
freebsd/usr.sbin/lpr/common_source
Garance A Drosehn 442e0eaf20 Change lpd to perform sanity and safety checks on control files as it
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
2001-07-15 05:29:38 +00:00
..
common.c Replace three subtly-wrong calls to strncpy with calls to strlcpy, and 2001-07-15 00:57:18 +00:00
ctlinfo.c Change lpd to perform sanity and safety checks on control files as it 2001-07-15 05:29:38 +00:00
ctlinfo.h Change lpd to perform sanity and safety checks on control files as it 2001-07-15 05:29:38 +00:00
displayq.c Fix most of the warnings generated by compiling lpr with -Wnon-const-format, 2001-07-15 00:09:46 +00:00
lp.h Replace three subtly-wrong calls to strncpy with calls to strlcpy, and 2001-07-15 00:57:18 +00:00
lp.local.h
Makefile Change lpd to perform sanity and safety checks on control files as it 2001-07-15 05:29:38 +00:00
net.c Rename a few global variables which hold hostname-related values to be 2001-06-15 22:03:07 +00:00
pathnames.h
printcap.c Fix about 90-100 warnings one gets when trying to compile lpr&friends 2001-06-12 16:38:20 +00:00
request.c Use macro API to <sys/queue.h> 2000-12-30 20:56:04 +00:00
rmjob.c Rename a few global variables which hold hostname-related values to be 2001-06-15 22:03:07 +00:00
startdaemon.c Fix about 90-100 warnings one gets when trying to compile lpr&friends 2001-06-12 16:38:20 +00:00