Getting the cnum in the rpc code

Luke Kenneth Casson Leighton lkcl at switchboard.net
Mon Aug 10 21:41:26 GMT 1998


On Tue, 11 Aug 1998, Jeremy Allison wrote:

> Jean-Francois Micouleau wrote:
> > 
> > in api_spoolss_startdocprinter() which is equiv to reply.c:openprint,
> > I need the cnum to call open_shared_file().
> > 
> > How do I get it knowing I only have the user's uid and the prs stream ?
> > 
> 
> How do you get down to api_spoolss_startdocprinter() ? What's
> the call stack at this point ? Maybe a cnum could be added ?

the call stack is about four or five functions deep from the
reply_api_xxx() side.

i can't remember if i removed the cnum, or didn't pass it down the call
stack, because:

- it wasn't used anywhere
- it's in one of the structures (vuser? vuid)
- you can obtain it by doing a lookup on the vuid.



More information about the samba-technical mailing list