FEATURE REQ: safe % expansion via new syntax

Luke Kenneth Casson Leighton lkcl at samba.org
Tue Feb 1 20:50:38 GMT 2000

On Tue, 1 Feb 2000, Nicolas Williams wrote:

> On Wed, Feb 02, 2000 at 06:42:14AM +1100, Luke Kenneth Casson Leighton wrote:
> > if anyone's proposing changes to these, please bear in mind that i need to
> > have the functions and all uses of those functions work across process
> > boundaries (e.g smbd creates it; smbd and netlogond, spoolssd etc read
> > it).
> Yes.
> Particularly I want to make the use of various parameters that end up
> calling smbrun() safe.
> So far as I know ALL of those parameters are implemented in smbd only
> (as they are SMB-specific) and, specifically, 'print command' and the
> open/close command parameters call string_sub() directly with values
> that are too dynamic to ever store in a TDB.

... *thinks*... 

no, that's not the case.  spoolssd calls nt_printing.c which calls
printing.c (remaps).

unfortunately, it takes a crec parameter which i have had to set to NULL
because the concept of a crec (representing a service section in smb.conf)
doesn't _exist_ in spoolssd, and even if it did, it would be the IPC$
share not the [printer-name] share!!!!

brain-dead, huh?  it's the difference between NT-style printing and winXX
printing, and it's a pain.


More information about the samba-technical mailing list