Samba-2.2.0-alpha0 (W2K-Printserver)

Gerald Carter gcarter at valinux.com
Mon Oct 30 19:53:19 GMT 2000


jan.preuss at berlin.de wrote:
> 
> OS: HP-UX 11.00
> 
> It isn't possible to connect correctly to the 
> share print$. Printers cannot be created or managed. 
> (see attached file bugs.hp-ux.zip for snapshots only) 
> In the trace file there is no information available 
> for that problem.

We just located and fixed (jeremy found it) a parsing problem
in the spoolss code related to big endian architectures. The fix should
be available via CVS in SAMBA_2_2 (and HEAD) soon.
In the meantime you can try this patch which should fix this.





Index: rpc_parse/parse_spoolss.c
===================================================================
RCS file: /data/cvs/samba/source/rpc_parse/parse_spoolss.c,v
retrieving revision 1.97
diff -u -r1.97 parse_spoolss.c
--- rpc_parse/parse_spoolss.c   2000/10/18 00:55:02     1.97
+++ rpc_parse/parse_spoolss.c   2000/10/30 19:19:58
@@ -382,8 +382,14 @@
                x=data->notify_data.data.length+1;
                if(!prs_uint32("string length", ps, depth, &x ))
                        return False;
+#if 1 /* JRATEST */
+               /* These are already in little endian format. Don't byte
swap. */
+               if(!prs_uint8s(True,"string",ps,depth,(uint8
*)data->notify_data.data.string,x*2))
+                       return False;
+#else /* JRATEST */
               
if(!prs_uint16s(True,"string",ps,depth,data->notify_data.data.string,x))
                        return False;
+#endif /* JRATEST */
        }
        if(!prs_align(ps))
                return False;                      









Cheers, jerry
----------------------------------------------------------------------
   /\  Gerald (Jerry) Carter                     Professional Services
 \/    http://www.valinux.com/  VA Linux Systems   gcarter at valinux.com
       http://www.samba.org/       SAMBA Team          jerry at samba.org
       http://www.plainjoe.org/                     jerry at plainjoe.org

       "...a hundred billion castaways looking for a home."
                                - Sting "Message in a Bottle" ( 1979 )




More information about the samba mailing list