FreeBSD Bugzilla – Attachment 5767 Details for
Bug 13549
[PATCH] Fix for 'lpc start queue' problem (see PR bin/9362)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 993 bytes, created by
Garance A Drosehn
on 1999-09-02 23:00:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Garance A Drosehn
Created:
1999-09-02 23:00:01 UTC
Size:
993 bytes
patch
obsolete
>*** lpc/cmds.c.orig Fri Sep 11 14:49:31 1998 >--- lpc/cmds.c Thu Sep 2 17:31:22 1999 >*************** >*** 587,598 **** > printf("%s:\n", pp->printer); > > /* >! * Turn off the owner execute bit of the lock file to enable printing. > */ > 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 >--- 587,599 ---- > printf("%s:\n", pp->printer); > > /* >! * For enable==1 ('start'), turn off the LFM_PRINT_DIS bit of the lock >! * file to re-enable printing. For enable==2 ('up'), also turn off >! * the LFM_QUEUE_DIS bit to re-enable queuing. > */ > 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
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13549
: 5767