jra at samba.org
Sat Mar 6 19:14:58 GMT 2004
On Sat, Mar 06, 2004 at 09:15:47PM +1100, tridge at samba.org wrote:
> I mean a function that splits a path in windows form (ie. with \
> separator) into two parts, both in unix form. The first part will be a
> directory and second will be a filename in that directory. Both parts
> will be allocated (possibly with talloc) and the input string will be
> unchanged (ie. none of that pstring crap!).
That's fine for Samba4, but pstring is too embedded within Samba3.0
to remove without killing the patient :-). Or at least re-writing
his insides :-).
> check_path_syntax() is fine in many places in Samba, but still means
> that lots of places (eg. ACL code) will have to re-parse the full path
> into a separate directory and filename.
It can be the basis of such a function in Samba4 I think - doesn't
need too much work to do the right thing here.
More information about the samba-technical