Fossil SCM

"/doc/ckout" doesn't work under chroot

Fixed

675f36eac4902cf… · opened 14 years, 9 months ago

Type
Code_Defect
Priority
Severity
Important
Resolution
Fixed
Subsystem
Created
July 9, 2011 2:13 a.m.

"/doc/ckout" fails when running under forced chroot (because fossil is running as root). Failure happens inside doc_page, when trying to do db_open_local --> thus "ckout" is always converted to "tip" instead.

db_open_local fails because file_getcwd (which is just a wrapper for getcwd) always return "/" under chroot, thus db_open_local cannot locate the FOSSIL database.

Observed when running fossil as root, using "fossil server" command from within a checkout directory, from the versions available on the official download page (May 28 and May 23), as well as latest version as of today - the bug probably originates much earlier.

Workaround: If I disabled enter_chroot_jail (by returning zRepo immediately) - ckout works.

cheers!

Keyboard Shortcuts

Open search /
Next entry (timeline) j
Previous entry (timeline) k
Open focused entry Enter
Show this help ?
Toggle theme Top nav button