uint16_t fnum was being byte order converted twice in the ipc server.
Metze, can you have a look at this? This change does make rpc work
again, but perhaps you might like to approach it differently
(This used to be commit
50246e6282087fdf7050ea052ad516dc620d6c7e)
struct ipc_private *private = ntvfs->private_data;
NTSTATUS status;
DATA_BLOB fnum_key;
+ uint16_t fnum;
- /* the fnum is in setup[1] */
- fnum_key = data_blob_const(&trans->in.setup[1], sizeof(trans->in.setup[1]));
+ /* the fnum is in setup[1], a 16 bit value */
+ SSVAL(&fnum, 0, trans->in.setup[1]);
+ fnum_key = data_blob_const(&fnum, 2);
p = pipe_state_find_key(private, req, &fnum_key);
if (!p) {