Skip to content
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

Do incidentally-created directories (not listed in archive, but created automatically for a file) respect umask? #67

Open
2 tasks done
dholth opened this issue Aug 1, 2023 · 1 comment

Comments

@dholth
Copy link
Contributor

dholth commented Aug 1, 2023

Checklist

  • I added a descriptive title
  • I searched open reports and couldn't find a duplicate

What happened?

Archives do not have to explicitly list directories. If conda-package-streaming encounters a/b/c/d.py and creates directories a/b/c, what are the permissions on those new directories?

Conda Info

No response

Conda Config

No response

Conda list

No response

Additional Context

No response

@dholth dholth changed the title Do incidentally-created directories (not listen in archive, but created automatically for a file) respect umask? Do incidentally-created directories (not listed in archive, but created automatically for a file) respect umask? Aug 1, 2023
@github-project-automation github-project-automation bot moved this to 🆕 New in 🧭 Planning Apr 1, 2024
@jaimergp
Copy link
Contributor

jaimergp commented Jun 5, 2024

Code says "default permissions", so I guess it uses the default process umask there?

https://github.com/python/cpython/blob/376c734216f54bb0f6676f60d0c771e24efe0824/Lib/tarfile.py#L2404-L2407

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 🆕 New
Development

No branches or pull requests

2 participants