retitle 307183 linda: can't build as root
tag 307183 patch
thanks
The mysterious error is caused by linda switching to nobody when started by
root--after that, it's unable to read the temporary directory created in
tests/endtoend.py. Adjusting permissions in endtoend.py is not enough as
$TMPDIR (or even the build directory itself) may be restricted to root.
I'm not sure whether you'd prefer to follow Lintian's lead and downgrade
this to a warning (trivial patch below), or add an --as-root option to force
keeping privileges.
--- linda-0.3.13.dist/linda 2005-03-26 08:37:50.000000000 +0000
+++ linda-0.3.13/linda 2005-05-07 08:11:54.000000000 +0000
@@ -80,8 +80,7 @@
def check_user(self):
if not os.geteuid():
if not clparser['quiet']:
- print _("Linda: Running as root, dropping to nobody.")
- os.seteuid(pwd.getpwnam('nobody')[3])
+ print _("Linda: Running as root is not recommended!")
if __name__ == '__main__':
try:
Thanks!
Matej
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]