The Samba-Bugzilla – Attachment 440 Details for
Bug 1007
Erratic behaviour using samba print queues lists samba3-3.0.2rc1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
fix byte ordering bug when storing updating pid in print_queue_update()
printing_pid.patch (text/plain), 825 bytes, created by
Gerald (Jerry) Carter (dead mail address)
on 2004-03-15 07:33:17 UTC
(
hide
)
Description:
fix byte ordering bug when storing updating pid in print_queue_update()
Filename:
MIME Type:
Creator:
Gerald (Jerry) Carter (dead mail address)
Created:
2004-03-15 07:33:17 UTC
Size:
825 bytes
patch
obsolete
>Index: printing/printing.c >=================================================================== >RCS file: /data/cvs/samba/source/printing/printing.c,v >retrieving revision 1.139.2.46 >diff -u -r1.139.2.46 printing.c >--- printing/printing.c 5 Mar 2004 17:39:38 -0000 1.139.2.46 >+++ printing/printing.c 12 Mar 2004 19:36:36 -0000 >@@ -818,6 +818,8 @@ > TDB_DATA key; > TDB_DATA data; > pid_t updating_pid = sys_getpid(); >+ uint8 buffer[4]; >+ > struct tdb_print_db *pdb = get_print_db_byname(printer_name); > > if (!pdb) >@@ -833,8 +835,9 @@ > return; > } > >- data.dptr = (void *)&updating_pid; >- data.dsize = sizeof(pid_t); >+ SIVAL( buffer, 0, updating_pid); >+ data.dptr = (void *)buffer; >+ data.dsize = 4; /* we always assume this is a 4 byte value */ > > tdb_store(pdb->tdb, key, data, TDB_REPLACE); > release_print_db(pdb);
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 Raw
Actions:
View
Attachments on
bug 1007
: 440 |
443
|
492
|
493
|
496
|
504
|
622