New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
directory permission error with make install in 3.0 #48851
Comments
Under Debian/Lenny, with Python3.0.final install from the tarball, any When I login in root and run "chmod -R o+rx /usr/lib/python3.0/*", users Install detail : "configure --with-pydebug --with-doc-strings
|
My root umask = 0027 (hardened system), so the altinstall/install script |
I'm able to reproduce the bug with umask set to 0027: With umask 0077, it's: The problem is specific to this directory. |
install() method of the install_lib command I wrote that only lib-dynload directory has a problem. But other files
|
With Python trunk, the directory has the right permission (drwxr-xr-x) But the problem is still open for listed files |
Gotcha! os.path.walk() was replaced by os.walk() but walk() argument is |
The patch is fine. If it were me, I'd change os.walk to accept keyword-only arguments: |
Hum, there is not fixer for 2to3. But I might be hard to write such Python2 prototype: Python3 prototype: Example: About the keyword only: +1 (or +2 :-)). Index: Lib/os.py __all__.extend(["makedirs", "removedirs", "renames"]) -def walk(top, topdown=True, onerror=None, followlinks=False):
top |
amaury> The patch is fine. Cool :-) Anyone to commit the fix? Maybe, tarek? amaury> If it were me, I'd change os.walk to accept I like the idea but it should be proposed in a new issue :-) I "(...) Beyond 3.0, I'm still rather reluctant -- I expect most users But walk() is a different case than open(). |
ping |
Ok, fixed in r73788 and r73789. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: