FreeBSD Bugzilla – Attachment 7162 Details for
Bug 15728
in /usr/sbin/lpc, the 'start queue' command does not work
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 1.02 KB, created by
SanTropez Root
on 1999-12-27 22:50:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
SanTropez Root
Created:
1999-12-27 22:50:01 UTC
Size:
1.02 KB
patch
obsolete
>Index: lpc/cmds.c >=================================================================== >RCS file: /Users/cvsdepot/lpr-fbsd/lpc/cmds.c,v >retrieving revision 1.1.1.1 >diff -U5 -r1.1.1.1 cmds.c >--- cmds.c 1999/08/28 01:16:51 1.1.1.1 >+++ cmds.c 1999/12/27 22:24:21 >@@ -585,16 +585,17 @@ > > lock_file_name(pp, lf, sizeof lf); > printf("%s:\n", pp->printer); > > /* >- * Turn off the owner execute bit of the lock file to enable printing. >+ * 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 queueing. > */ > seteuid(euid); > if (enable && stat(lf, &stbuf) >= 0) { >- mode_t bits = (enable == 2 ? 0 >- : (LFM_PRINT_DIS | LFM_QUEUE_DIS)); >+ 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 > printf("\tprinting enabled\n"); > } >===================================================================
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 15728
: 7162