trans2 submcommand endianness

Shirish Pargaonkar shirishpargaonkar at gmail.com
Tue Jul 26 21:12:57 MDT 2011


On Tue, Jul 26, 2011 at 4:39 PM, Jeremy Allison <jra at samba.org> wrote:
> On Tue, Jul 26, 2011 at 03:34:38PM -0500, Shirish Pargaonkar wrote:
>> Is this a known/reported issue?
>>
>> smbclient, during dir operation at the command prompt,
>> instead of sending trans2 subcommand (two bytes) as
>> 0x0001 (01 00), is sending as 0x0100 (00 01) thus
>> changing subcommand from FIND_FIRST2 (1) to Unknown (256)
>> and incurring error NT_STATUS_NOT_IMPLEMENT.
>>
>> # smbd -V
>> Version 3.6.0rc2-0.9.2-2566-SUSE-CODE11-ppc64
>
> Sounds like an endian messup. Is this a big-endian
> box ? It's not a known issue, so please log a bug
> asap.
>
> Jeremy.
>

Jeremy, Thanks for patch. It would be a day or so
before I could tell whether it fixes or not.
The test machine is a big endian powerpc box.

Regards,

Shirish


More information about the samba-technical mailing list