The Samba-Bugzilla – Attachment 1174 Details for
Bug 1998
queue/cancel on AIX broken (jobids messed up)
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
This is the fix for this Bug
samba_printing_sunpro_cc.patch (text/plain), 1.55 KB, created by
Olaf Imig
on 2005-04-26 06:31:43 UTC
(
hide
)
Description:
This is the fix for this Bug
Filename:
MIME Type:
Creator:
Olaf Imig
Created:
2005-04-26 06:31:43 UTC
Size:
1.55 KB
patch
obsolete
>--- samba-3.0.15pre2/source/printing/printing.c.ori 2005-04-25 16:40:36.533654000 +0200 >+++ samba-3.0.15pre2/source/printing/printing.c 2005-04-25 18:47:56.495388000 +0200 >@@ -67,6 +67,7 @@ > uint16 rap_jobid; > TDB_DATA data, key; > struct rap_jobid_key jinfo; >+ uint8 buf[2]; > > DEBUG(10,("pjobid_to_rap: called.\n")); > >@@ -96,7 +97,9 @@ > rap_jobid = ++next_rap_jobid; > if (rap_jobid == 0) > rap_jobid = ++next_rap_jobid; >- data.dptr = (char *)&rap_jobid; >+ /* data.dptr = (char *)&rap_jobid; */ >+ SSVAL(buf,0,rap_jobid); >+ data.dptr = buf; > data.dsize = sizeof(rap_jobid); > tdb_store(rap_tdb, key, data, TDB_REPLACE); > tdb_store(rap_tdb, data, key, TDB_REPLACE); >@@ -109,13 +112,16 @@ > BOOL rap_to_pjobid(uint16 rap_jobid, fstring sharename, uint32 *pjobid) > { > TDB_DATA data, key; >+ uint8 buf[2]; > > DEBUG(10,("rap_to_pjobid called.\n")); > > if (!rap_tdb) > return False; > >- key.dptr = (char *)&rap_jobid; >+ /* key.dptr = (char *)&rap_jobid; */ >+ SSVAL(buf,0,rap_jobid); >+ key.dptr = buf; > key.dsize = sizeof(rap_jobid); > data = tdb_fetch(rap_tdb, key); > if ( data.dptr && data.dsize == sizeof(struct rap_jobid_key) ) >@@ -140,6 +146,7 @@ > TDB_DATA key, data; > uint16 rap_jobid; > struct rap_jobid_key jinfo; >+ uint8 buf[2]; > > DEBUG(10,("rap_jobid_delete: called.\n")); > >@@ -165,7 +172,9 @@ > > rap_jobid = SVAL(data.dptr, 0); > SAFE_FREE(data.dptr); >- data.dptr = (char *)&rap_jobid; >+ /* data.dptr = (char *)&rap_jobid; */ >+ SSVAL(buf,0,rap_jobid); >+ data.dptr=buf; > data.dsize = sizeof(rap_jobid); > tdb_delete(rap_tdb, key); > tdb_delete(rap_tdb, data);
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 1998
:
1033
| 1174