On Wed, Sep 25, 2013 at 12:30 PM, Stephan Beal <sgb...@googlemail.com>wrote:
> On Tue, Sep 24, 2013 at 9:36 PM, Richard Hipp <d...@sqlite.org> wrote: > >> I think this is a bug. My theory is that Fossil is putting itself in a >> chroot jail to handle each request, but it is doing so after opening the >> database file. That's a huge no-no. The database file needs to be opened >> after entering the chroot jail. If the database file is open prior to >> entering the chroot jail, it needs to be closed prior to entry then >> reopened afterwards. >> > > enter_chroot_jail() closes/re-opens the repo, but it closes after doing > the chdir. Do i understand correctly that the db_close() should be done > before the chdir, and the db_open_repo...() afterwards? > Why would the database be opened before doing the chroot?
_______________________________________________ fossil-users mailing list fossil-users@lists.fossil-scm.org http://lists.fossil-scm.org:8080/cgi-bin/mailman/listinfo/fossil-users