diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-20 15:58:41 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-12-20 15:58:41 +0000 |
commit | cddb4405ea22f8e41d6494ba16671ae2035735e0 (patch) | |
tree | 977286b65e930e2c10a07cb2bfc302a2307558d0 /usr.sbin/lpr/lpd/lpd.c | |
parent | 76956a2b2fa1a2c8c8ef5b5d4d95650f855559b7 (diff) |
initialize name; is this the right hack?
Diffstat (limited to 'usr.sbin/lpr/lpd/lpd.c')
-rw-r--r-- | usr.sbin/lpr/lpd/lpd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/usr.sbin/lpr/lpd/lpd.c b/usr.sbin/lpr/lpd/lpd.c index a9780fe2285..ff9183ccdd7 100644 --- a/usr.sbin/lpr/lpd/lpd.c +++ b/usr.sbin/lpr/lpd/lpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: lpd.c,v 1.11 1996/11/03 23:24:08 millert Exp $ */ +/* $OpenBSD: lpd.c,v 1.12 1996/12/20 15:58:40 deraadt Exp $ */ /* $NetBSD: lpd.c,v 1.7 1996/04/24 14:54:06 mrg Exp $ */ /* @@ -127,6 +127,8 @@ main(argc, argv) options = 0; gethostname(host, sizeof(host)); + name = "lpd"; + if (euid != 0) { fprintf(stderr,"lpd: must run as root\n"); exit(1); |