freebsd-skq/usr.sbin
Edwin Groothuis e782099404 Fix printing of files located on ZFS filesystem with an st_dev or
st_ino larger than 2**31.

From the PR:

   Printing from a ZFS filesystem using 'lp' fails and returns an
   email reporting "Your printer job was not printed because it was
   not linked to the original file".

   In order to protect against files being switched when files
   are printed using 'lp' or 'lpr -s', the st_dev and st_ino
   values for the original file are saved by lpr and verified
   by lpd before the file is printed. Unfortunately, lpr prints
   both values using '%d' (although both fields are unsigned)
   and lpd(8) assumes a string of decimal digits.

   ZFS (at least) generates st_dev values greater than 2^31-1,
   resulting in negative values being printed - which lpd cannot
   parse, leading it to report that the file has been switched.

   A similar problem would occur with large inode numbers.

   How-To-Repeat:

   Find a file with either st_dev or st_ino greater than 2^31-1
   (stat(1) will report both numbers) and print it with 'lpq -s'.
   This should generate an email reporting that the file could
   not be printed because it was not linked to the original file

PR:		bin/151567
Submitted by:	Peter Jeremy <Peter.Jeremy@alcatel-lucent.com>
MFC after:	1 week
2010-10-21 06:52:14 +00:00
..
ac MFtbemd: 2010-08-23 22:24:11 +00:00
accton The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
acpi Merge ACPICA 20100915. 2010-09-16 20:08:00 +00:00
adduser mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
amd MFtbemd: 2010-08-23 22:24:11 +00:00
ancontrol mdoc: make sure to pass at least one argument to quotation macros 2010-08-02 13:11:35 +00:00
apm MFtbemd: 2010-08-23 22:24:11 +00:00
apmd mdoc: drop even more redundant .Pp calls 2010-10-19 12:35:40 +00:00
arp Cache the last result from if_indextoname for printing. This speeds up 2010-06-11 19:35:05 +00:00
asf mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
audit The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
auditd Fixed static linkage. 2010-02-26 09:41:16 +00:00
auditreduce The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
authpf The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
bluetooth Make sure to only pickup hid_input items when parsing input reports. 2010-09-08 20:00:27 +00:00
boot0cfg If a device can't be opened, don't keep going but display the error 2010-06-23 14:28:08 +00:00
boot98cfg Correct typo in usage message. 2007-12-19 03:31:44 +00:00
bootparamd Unbreak bootparamd when setting WITHOUT_NIS. 2010-01-04 18:08:16 +00:00
bsnmpd Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
btxld The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
burncd mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
cdcontrol This now passes a make universe with WARNS=6. 2010-01-07 09:40:34 +00:00
chkgrp The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
chown Plug resource leak. 2010-06-05 08:11:11 +00:00
chroot The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ckdist mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
clear_locks mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
config mdoc: drop redundant .Pp calls, kill EOL whitespace 2010-10-09 11:43:00 +00:00
cpucontrol Remove dead assignments, we overwrite the variable almost immediately. 2010-06-19 16:29:23 +00:00
crashinfo Set umask to 0x077 instead of the default. This prevents non-root user 2009-11-03 09:17:23 +00:00
cron List /var/cron/tabs in FILES and add descriptions for the other entries. 2010-05-14 01:25:30 +00:00
crunch mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
ctm mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
cxgbtool Add support for hardware filters to cxgb(4). The T3 chip can inspect 2010-05-05 00:41:40 +00:00
daemon Slightly improve wording. 2010-05-17 11:18:33 +00:00
dconschat mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
devinfo mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
digictl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
diskinfo The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dnssec-dsfromkey The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dnssec-keyfromlabel The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dnssec-keygen The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dnssec-signzone The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
dumpcis The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
editmap The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
edquota The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
eeprom The NetBSD Foundation has given permission to remove clause 3 and 4 2010-02-16 21:47:05 +00:00
extattr extattr: Fix a signed/unsigned issue 2010-05-12 21:25:05 +00:00
extattrctl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
faithd Use the newly brought %U macro. 2010-01-15 16:01:22 +00:00
fdcontrol mdoc: Remove leading garbage, empty lines and order preamble 2010-05-27 13:56:19 +00:00
fdformat mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
fdread mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
fdwrite mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
fifolog Typo fixes 2010-08-06 12:38:30 +00:00
flowctl mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
freebsd-update mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
ftp-proxy Add missing newline in last line of file. 2010-02-16 09:10:21 +00:00
fwcontrol Spelling fixes. 2010-08-01 09:37:36 +00:00
getfmac The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
getpmac The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
gpioctl mdoc: drop even more redundant .Pp calls 2010-10-19 12:35:40 +00:00
gssd mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
gstat The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
i2c mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
ifmcstat Merge final round of MLD changes from p4: 2009-05-27 18:57:13 +00:00
inetd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
iostat Clean up the style and markup of the paragraph on fractional wait intervals. 2010-08-07 11:48:31 +00:00
ip6addrctl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ipfwpcap The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
IPXrouted Fix incorrect usage of 'assure' and 'insure'. 2010-08-28 16:32:01 +00:00
jail mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
jexec The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
jls Properly recognize a number followed by non-digits as a jail name. 2010-07-08 19:22:52 +00:00
kbdcontrol Fix some typos: flush vs. flash, and some others. 2010-08-11 08:26:15 +00:00
kbdmap - fix path for locale.alias 2009-04-28 20:20:13 +00:00
kernbb The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
keyserv Rename all symbols in libmp(3) to mp_*, just like Solaris. 2009-02-26 21:43:15 +00:00
kgmon
kgzip
kldxref Repair some build breakage introduced in r211725 and garbage collect some 2010-08-28 15:03:11 +00:00
lastlogin Don't forget to catch realloc() errors. 2010-04-11 12:07:03 +00:00
lmcconfig Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
lpr Fix printing of files located on ZFS filesystem with an st_dev or 2010-10-21 06:52:14 +00:00
lptcontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mailstats The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mailwrapper Create the /bin/rmail symlink (which mailers such as postfix 2010-10-12 21:01:26 +00:00
makefs Fix typos and spelling mistakes. 2010-08-06 14:33:42 +00:00
makemap The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
manctl
memcontrol The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mergemaster mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
mfiutil Fix compile with -DDEBUG by using the correct mfi_pd_ref union definition 2010-10-10 20:54:01 +00:00
mixer mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
mld6query The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mlxcontrol mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
mount_nwfs mount_nwfs(8): make WARNS=6 clean 2010-03-04 16:07:14 +00:00
mount_portalfs mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
mount_smbfs The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
mountd o Fix typo: sepcify -> specify. 2010-07-12 04:21:50 +00:00
moused When Emulate3Button is active, do not set select() timeout in states when 2010-06-15 19:19:04 +00:00
mptable mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
mptutil Report subcommand handler errors in mfiutil/mptutil so that tools that 2010-10-10 20:37:38 +00:00
mtest mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
mtree Wording fixes. 2010-05-14 01:45:05 +00:00
named Eliminate the --disable-ipv6 string which while technically correct in 2010-09-22 18:46:17 +00:00
named-checkconf The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
named-checkzone The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
named.reload
ndiscvt ANSIfy some more tools in usr.sbin/. 2010-01-02 11:05:34 +00:00
ndp Ethernet vlan(4) interfaces have valid Ethernet link layer addresses but 2010-08-06 15:09:21 +00:00
newsyslog Add a -S switch to override the default syslog pid file. This can be useful 2010-07-23 09:11:47 +00:00
nfscbd Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
nfsd Fix typos, spelling, formatting and mdoc mistakes found by Nobuyuki while 2010-08-16 15:18:30 +00:00
nfsdumpstate Fix handling of the "-l" argument for nfsdumpstate(8). 2010-07-20 00:32:11 +00:00
nfsrevoke Code cleanup for nfs4 utilities: 2009-05-29 22:19:45 +00:00
nfsuserd Fix typos and spelling mistakes. 2010-08-06 14:33:42 +00:00
ngctl Add volatile to sig_atomic_t where it was missing. 2009-06-14 21:39:52 +00:00
nghook The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
nologin
nscd mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
ntp Enable the shared memory reference clock driver. The GPS devices are 2010-10-14 11:20:23 +00:00
nvram The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ofwdump The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pc-sysinstall Simplify and significantly speed up the timezone listing backend script. 2010-10-19 15:18:40 +00:00
pciconf Only attempt to list extended capabilities for devices that have a 2010-09-16 16:03:12 +00:00
periodic mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
pkg_install - Add support for xz compression to pkg_create, bzip2 remains the default 2010-10-12 10:04:44 +00:00
pmcannotate Fix a grammatical error connected to the previous commit. 2010-10-16 17:30:27 +00:00
pmccontrol Add code to print the number and type of the CPU that is present in 2010-10-11 14:31:24 +00:00
pmcstat When an asm location cannot be resolved to a function the cost 2010-09-03 13:54:02 +00:00
pnpinfo The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
portsnap mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
powerd Add -m and -M options to control the minimum and maximum frequency. 2010-08-17 09:11:38 +00:00
ppp Log if fopen() fails. 2010-10-18 07:28:53 +00:00
pppctl mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
praliases The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
praudit The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
procctl The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pstat The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
pw mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
pwd_mkdb The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
quot Make `quot -a' work when we've got slashes in the device name. 2008-09-14 11:50:19 +00:00
quotaon IFH@204581 2010-03-04 13:35:57 +00:00
rarpd
repquota Debugging nits found while testing the new 64-bit quota code. 2010-03-16 06:12:30 +00:00
rip6query The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rmt The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rndc The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rndc-confgen The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
route6d The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.lockd Fix the include path for nfs_lock.h. 2010-07-24 22:16:14 +00:00
rpc.statd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.umntall The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.yppasswdd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.ypupdated The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rpc.ypxfrd Spelling fixes. 2010-08-01 09:37:36 +00:00
rpcbind Revert bogus change that snuck into r203972. 2010-02-17 06:11:05 +00:00
rrenumd The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
rtadvd mdoc: move remaining sections into consistent order 2010-05-13 12:08:11 +00:00
rtprio mdoc: move CAVEATS, BUGS and SECURITY CONSIDERATIONS sections to the 2010-05-13 12:07:55 +00:00
rtsold mdoc: move remaining sections into consistent order 2010-05-13 12:08:11 +00:00
rwhod Remove stale references to utmp(5) and its corresponding filenames. 2010-01-21 17:25:12 +00:00
sa mdoc: move remaining sections into consistent order 2010-05-13 12:08:11 +00:00
sade MFtbemd: 2010-08-23 22:24:11 +00:00
sendmail Lower WARNS for sendmail. 2010-01-03 15:32:25 +00:00
service mdoc nitpicking: the title argument shall be uppercase 2010-06-11 06:03:47 +00:00
services_mkdb Revise markup, mainly. 2010-10-05 06:31:11 +00:00
setfib Correct the information about when the respective functionality first 2009-04-23 08:37:56 +00:00
setfmac mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
setpmac mdoc: order prologue macros consistently by Dd/Dt/Os 2010-04-14 19:08:06 +00:00
sicontrol Remove sicontrol(8)'s "ttystat". 2008-06-09 08:43:27 +00:00
smbmsg mdoc: Remove leading garbage, empty lines and order preamble 2010-05-27 13:56:19 +00:00
snapinfo mdoc: consistently spell our email addresses <foo@FreeBSD.org> 2010-05-19 08:57:53 +00:00
spkrtest
spray
sysinstall Use the RFC2606 domain example.com in examples. 2010-10-13 09:33:26 +00:00
syslogd This isn't WARNS=6 safe. It fails to build on mips. Retore old 2010-08-08 02:45:14 +00:00
tcpdchk The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
tcpdmatch The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
tcpdrop The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
tcpdump MFtbemd: 2010-08-23 22:24:11 +00:00
timed Initialise the "trials" variable to zero earlier in case we unexpectedly 2010-06-19 17:04:01 +00:00
traceroute Correct spelling. 2010-01-09 15:37:24 +00:00
traceroute6 The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
trpt Fix LLVM compiler errors related to K&R declarations with ANSI prototypes. 2009-02-26 20:59:05 +00:00
tzsetup Fix support for chrooted installs. 2010-07-19 16:38:45 +00:00
uathload The -d flag is non-optional. 2010-05-12 01:33:51 +00:00
ugidfw Fix a couple of typos. 2010-07-30 11:58:18 +00:00
uhsoctl - Fixed automatic detection of the control serial port. 2010-07-20 03:11:26 +00:00
usbconfig Print error messages to stderr. 2010-01-10 19:21:23 +00:00
usbdevs The NetBSD Foundation has given permission to remove clause 3 and 4 2010-02-16 21:47:05 +00:00
vidcontrol mdoc: drop redundant .Pp and .LP calls 2010-10-08 12:40:16 +00:00
vipw The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
wake Anything that casts struct sockaddr * to struct sockaddr_foo is safe 2010-02-09 17:16:13 +00:00
watch Convert the snp(4) driver to use cdevpriv. 2008-08-15 13:07:07 +00:00
watchdogd Protect the watchdog daemon against swap OOM killer. This is similar to 2010-09-26 01:45:33 +00:00
wlandebug The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
wlconfig The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
wpa mdoc: remove unused/empty macros 2010-08-02 13:11:27 +00:00
yp_mkdb The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ypbind Don't let the "available"/"not available" logs flap quite so badly. In the 2010-10-08 20:17:17 +00:00
yppoll The NetBSD Foundation has given permission to remove clause 3 and 4 2010-02-16 21:47:05 +00:00
yppush The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
ypserv Spelling fixes. 2010-08-01 09:37:36 +00:00
ypset The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
zic wollman@ has OK'd dropping his maintainership of zic(8) 2010-03-20 11:05:11 +00:00
zzz
Makefile - Introduce WITH_GPIO knob and disable building gpioctl 2010-10-05 21:19:20 +00:00
Makefile.amd64 Merge from tbemd: use Makefile.arch to control building. 2010-09-13 02:21:07 +00:00
Makefile.arm Merge from tbemd: use Makefile.arch to control building. 2010-09-13 02:21:07 +00:00
Makefile.i386 Merge from tbemd: use Makefile.arch to control building. 2010-09-13 02:21:07 +00:00
Makefile.ia64 Merge from tbemd: use Makefile.arch to control building. 2010-09-13 02:21:07 +00:00
Makefile.inc The last big commit: let usr.sbin/ use WARNS=6 by default. 2010-01-02 11:07:44 +00:00
Makefile.mips Merge from tbemd: use Makefile.arch to control building. 2010-09-13 02:21:07 +00:00
Makefile.powerpc Merge from tbemd: use Makefile.arch to control building. 2010-09-13 02:21:07 +00:00
Makefile.sparc64 Merge from tbemd: use Makefile.arch to control building. 2010-09-13 02:21:07 +00:00