Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 36517

Summary: bug in distcc-config (2.11.1p) script, os.chmod called with wrong arguments
Product: Gentoo Linux Reporter: Vaclav Slavik <vslavik>
Component: [OLD] DevelopmentAssignee: Lisa Seelye (RETIRED) <lisa>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Vaclav Slavik 2003-12-26 04:43:32 UTC
distcc-config script for distcc 2.11.1p (and 2.12) contains a silly bug -- second argument to os.chmod() is number, not string. On fresh system (w/o /etc/distcc), this causes Python's TypeError exception to be thrown:

[root@wintermute vasek]# distcc-config --set-hosts "localhost mama honza"
Traceback (most recent call last):
  File "/usr/bin/distcc-config", line 113, in ?
    createdistccdir(PATH)
  File "/usr/bin/distcc-config", line 85, in createdistccdir
    os.chmod(dir, '1777')
TypeError: an integer is required

The fix is simple: replace '1777' with 01777 in the call (/usr/portage/sys-devel/distcc/files/2.11.1p/distcc-config:85).

Reproducible: Always
Steps to Reproduce:
1. rm -rf /etc/distcc
2. distcc-config --set-hosts "localhost"
Comment 1 Lisa Seelye (RETIRED) gentoo-dev 2003-12-26 08:24:01 UTC
Report this in bug 27432 please, we are keeping all Python distcc-bugs in that bug.

(I'll pass it to pYrania anyways, but please post in the bug 27432.)
Comment 2 Vaclav Slavik 2003-12-26 08:33:51 UTC
It's already reported there. Sorry for duplicate report, I didn't find that bug report when searching bugzilla for this problem.