Patch for * share command options

Simo Sorce simo.sorce at
Thu Feb 19 15:51:12 GMT 2004

I've put up this patch to overcome the fact that current code do not let
you create a share from srvmgr.exe if the unix path does not exist.

I find this behaviour make the functionality nearly unusable, so patched
the code to let the script decide by itslef what to do.
Also tryed to address possible errors but not arguing too much.

If it seem ok I'm going to commit it in HEAD and 3.0


P.S: This behaviour matches the one present in lanman.c api_RNetShareAdd
function, a it doesn't check the code if I've read it correctly, so this
patch also make RAP and RPC consistent regarding this functionality

Simo Sorce - simo.sorce at
Xsec s.r.l. -
via Garofalo, 39 - 20133 - Milano
mobile: +39 329 328 7702
tel. +39 02 2953 4143 - fax: +39 02 700 442 399

More information about the samba-technical mailing list