svn commit: samba r23047 - in branches/SAMBA_4_0/source/scripting/ejs: .

Rafal Szczesniak mimir at samba.org
Tue May 22 06:19:12 GMT 2007


On Tue, May 22, 2007 at 09:46:51AM +1000, Andrew Bartlett wrote:
> On Mon, 2007-05-21 at 19:53 +0000, mimir at samba.org wrote:
> > Author: mimir
> > Date: 2007-05-21 19:53:57 +0000 (Mon, 21 May 2007)
> > New Revision: 23047
> > 
> > WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=23047
> > 
> > Log:
> > Allow local inclusion of js files as well as from predefined
> > path(s).
> 
> > +		/* First, try to include file from current working directory.
> > +		   This allows local includes which is handy sometimes. */
> > +		path = talloc_asprintf(mprMemCtx(), "%s", script);
> > +		if (path == NULL) {
> > +			return -1;
> > +		}
> 
> Does that mean that the script behaviour will vary depending on the
> current working directory, or is this relative to the location of the
> script?

It might, as tridge pointed, because working directory would be considered
first. I should have add that after looking through defined paths. This
should fix the problem and still provide the feature.


cheers,
-- 
Rafal Szczesniak
Samba Team member  http://www.samba.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: Digital signature
Url : http://lists.samba.org/archive/samba-technical/attachments/20070522/6d98c085/attachment.bin


More information about the samba-technical mailing list