On Wed, Apr 30, 2014 at 7:08 PM, Joseph Prostko <joe.pros...@gmail.com>wrote:

> Thanks again for all of the help, Stephan and Andy, as now I can use
> Fossil to its full potential in Haiku.  :)
>

A minor amendment...

a) the fix is actually not Haiku-specific, it turns out.

b) the credit goes to Andy B. for the fix and Joe for his support in
finding it.

c) here's Andy B's report of the root of the problem:


On Wed, Apr 30, 2014 at 9:09 AM, Andy Bradford <amb-fos...@bradfords.org>
 wrote:

> Here's  what  I've   found  so  far.  Assume  that   the  repository  is
> /tmp/new.fossil and  I run  fossil ui  from an  open directory  for that
> fossil.
>
> enter_chroot_jail  is  called,  it  closes  the open  db,  and  then  it
> successfully does a  chroot into /tmp, and returns  "/new.fossil" as the
> new g.zRepositoryName  (relative to the  chroot). This is fine.  Then we
> get into process_one_web_page and this is where the mischief happens:
>
> zRepo = zToFree = mprintf("%s%.*s.fossil",g.zRepositoryName,i,zPathInfo);
>
>
> http://www.fossil-scm.org/index.html/artifact/2b4c706ab0a6a03694a6017733d53211d95d8c67?ln=1319,1368
>
> Basically,  zPathInfo  is  /  (because that's  what  fossil  ui  directs
> the browser  to e.g.  http://localhost:8080/), and  g.zRepositoryName is
> "/new.fossil" so it combines them into zRepo:
>
> zRepo = zToFree = "/new.fossil/.fossil"
>
> Then the rest is  history. It tries to open that and  read the size, but
> fails because that  doesn't exist. It then tries  to open "/new.fossil/"
> as a directory and fails.



-- 
----- stephan beal
http://wanderinghorse.net/home/stephan/
http://gplus.to/sgbeal
"Freedom is sloppy. But since tyranny's the only guaranteed byproduct of
those who insist on a perfect world, freedom will have to do." -- Bigby Wolf
_______________________________________________
fossil-users mailing list
fossil-users@lists.fossil-scm.org
http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users

Reply via email to