Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 36517 - bug in distcc-config (2.11.1p) script, os.chmod called with wrong arguments
Summary: bug in distcc-config (2.11.1p) script, os.chmod called with wrong arguments
Status: RESOLVED CANTFIX
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Lisa Seelye (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-26 04:43 UTC by Vaclav Slavik
Modified: 2003-12-26 08:33 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.