Bug 193935 - Monotone (0.35 and 0.36) can't be started from dirs inaccessible to monotone-user
Bug#: 193935 Product:  Gentoo Linux Version: unspecified Platform: All
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: dragonheart@gentoo.org Reported By: devurandom@gmx.net
Component: Development
URL: 
Summary: Monotone (0.35 and 0.36) can't be started from dirs inaccessible to monotone-user
Keywords:  
Status Whiteboard: 
Opened: 2007-09-27 00:27 0000
Description:   Opened: 2007-09-27 00:27 0000
When I try to start /etc/init.d/monotone inside /root/, it tries to access
/root/_MTN, which it doesn't have permissions for since it is started with
UID=monotone. Since mtn "thinks" the workspace is critical, it will immediately
exit. (Upstream is thinking about changing that behaviour in future versions.)

The attached patch works around the issue by cd'ing to monotone's $HOME and
calling mtn from there.

Reproducible: Always

Steps to Reproduce:
1. cd to a directory inaccesible to the monotone user, eg. /root/
2. Issue /etc/init.d/monotone start

Actual Results:  
Mtn starts and immediately exits again, notable by the entry in the logfile

Expected Results:  
Mtn stays "alive".

------- Comment #1 From Dennis Schridde 2007-09-27 00:28:25 0000 -------
Created an attachment (id=131986) [details]
Proposed patch

------- Comment #2 From Christian Faulhammer 2007-10-07 12:33:05 0000 -------
fixed in 0.36