Date: Thu, 18 Nov 1999 15:46:40 +0100 (CET) From: kheuer@gwdg.de To: FreeBSD-gnats-submit@freebsd.org Subject: bin/14975: lpc start bug fix 3.3-R Message-ID: <199911181446.PAA13461@gwdu58.gwdg.de>
index | next in thread | raw e-mail
>Number: 14975
>Category: bin
>Synopsis: lpc start subcmd doesn't start printing
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Thu Nov 18 06:50:01 PST 1999
>Closed-Date:
>Last-Modified:
>Originator: Konrad Heuer
>Release: FreeBSD 3.3-RELEASE i386
>Organization:
Gesellschaft fuer wissenschaftliche Datenverarbeitung mbH
Goettingen, Am Fassberg, 37077 Goettingen, Germany
>Environment:
>Description:
/usr/sbin/lpc is used to control print spooling. Different
subcommands (disable, enable, start and stop) allow to close
or to open both ends of printer queues (reject or accept
jobs, print or keep jobs). The `lpc start queue' doesn't start
printing although it says so which is a bug.
>How-To-Repeat:
lpc up queue # to make sure
lpc stop queue # stop printing
lpc status queue # check status
lpc start queue # looks good but
lpc status queue # nothing has changed, printing still disabled
>Fix:
*** cmds.c Thu Nov 18 15:12:03 1999
--- cmds.c.orig Sun Aug 29 17:43:18 1999
***************
*** 591,597 ****
*/
seteuid(euid);
if (enable && stat(lf, &stbuf) >= 0) {
! mode_t bits = (enable == 2 ? 0 : LFM_QUEUE_DIS);
if (chmod(lf, stbuf.st_mode & (LOCK_FILE_MODE | bits)) < 0)
printf("\tcannot enable printing\n");
else
--- 591,598 ----
*/
seteuid(euid);
if (enable && stat(lf, &stbuf) >= 0) {
! mode_t bits = (enable == 2 ? 0
! : (LFM_PRINT_DIS | LFM_QUEUE_DIS));
if (chmod(lf, stbuf.st_mode & (LOCK_FILE_MODE | bits)) < 0)
printf("\tcannot enable printing\n");
else
>Release-Note:
>Audit-Trail:
>Unformatted:
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message
home |
help
Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199911181446.PAA13461>
