From: deraadt Date: Wed, 22 Nov 1995 10:15:05 +0000 (+0000) Subject: from netbsd; {} mania X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=89c2d0c04a3fed192049b0899d588233e1e9fcd7;p=openbsd from netbsd; {} mania --- diff --git a/usr.sbin/lpr/common_source/displayq.c b/usr.sbin/lpr/common_source/displayq.c index 5f244c2724b..6abaac86c86 100644 --- a/usr.sbin/lpr/common_source/displayq.c +++ b/usr.sbin/lpr/common_source/displayq.c @@ -1,3 +1,4 @@ +/* $NetBSD: displayq.c,v 1.5.2.1 1995/11/19 00:41:30 pk Exp $ */ /* * Copyright (c) 1983, 1993 * The Regents of the University of California. All rights reserved. @@ -165,16 +166,16 @@ displayq(format) cp++; *cp = '\0'; i = atoi(current); - if (i <= 0) + if (i <= 0) { ret = -1; - else { + } else { seteuid(euid); ret = kill(i, 0); seteuid(uid); } - if (ret < 0) + if (ret < 0) { warn(); - else { + } else { /* read current file name */ cp = current; while ((*cp = getc(fp)) != EOF && *cp != '\n')