summaryrefslogtreecommitdiffstats
path: root/usr.sbin/lpr
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2014-07-12 02:56:01 +0000
committerderaadt <deraadt@openbsd.org>2014-07-12 02:56:01 +0000
commit8785ab1e3dd9a94d22b843aec7fb248ad9be2801 (patch)
treec16dcd7871951b19a9babdf73aebdeb75b4e50be /usr.sbin/lpr
parentWelcome to 1989: assume the compiler support const (diff)
downloadwireguard-openbsd-8785ab1e3dd9a94d22b843aec7fb248ad9be2801.tar.xz
wireguard-openbsd-8785ab1e3dd9a94d22b843aec7fb248ad9be2801.zip
The hosts.lpd file must exist, or no permission is granted. Change the
the log messages to clarify the reason for the failure to clarify the condition. ok guenther
Diffstat (limited to 'usr.sbin/lpr')
-rw-r--r--usr.sbin/lpr/lpd/lpd.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c
index a3a77f24ed5..296f794d5f0 100644
--- a/usr.sbin/lpr/lpd/lpd.c
+++ b/usr.sbin/lpr/lpd/lpd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: lpd.c,v 1.53 2014/04/20 22:35:10 ajacoutot Exp $ */
+/* $OpenBSD: lpd.c,v 1.54 2014/07/12 02:56:01 deraadt Exp $ */
/* $NetBSD: lpd.c,v 1.33 2002/01/21 14:42:29 wiz Exp $ */
/*
@@ -726,8 +726,9 @@ chkhost(struct sockaddr *f)
return;
}
(void)fclose(hostf);
- }
- fatal("Your host does not have line printer access");
+ fatal("Your host does not have line printer access (/etc/hosts.lpd)");
+ } else
+ fatal("Your host does not have line printer access (no /etc/hosts.lpd)");
}
static __dead void