Skip to content

Conversation

obilaniu
Copy link
Contributor

@obilaniu obilaniu commented May 9, 2019

@the-knights-who-say-ni
Copy link

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA (this might be simply due to a missing "GitHub Name" entry in your b.p.o account settings). This is necessary for legal reasons before we can look at your contribution. Please follow the steps outlined in the CPython devguide to rectify this issue.

You can check yourself to see if the CLA has been received.

Thanks again for your contribution, we look forward to reviewing it!

…only files.

Extended attributes can only be set on user-writeable files, but shutil previously
first chmod()ed the destination file to the source's permissions and then tried to
copy xattrs. This will cause failures if attempting to copy read-only files with
xattrs, as occurs with Git clones on Lustre FS.
@obilaniu obilaniu force-pushed the fix-issue-24538 branch from 244ebba to a99b0ca Compare May 9, 2019 13:37
Copy link
Contributor

@giampaolo giampaolo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. This also needs a backport for 3.7 and 2.7. Also se my comment at https://bugs.python.org/issue24538#msg342051

@miss-islington
Copy link
Contributor

Thanks @obilaniu for the PR, and @giampaolo for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @obilaniu for the PR, and @giampaolo for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Thanks @obilaniu for the PR, and @giampaolo for merging it 🌮🎉.. I'm working now to backport this PR to: 2.7.
🐍🍒⛏🤖

@miss-islington
Copy link
Contributor

Sorry, @obilaniu and @giampaolo, I could not cleanly backport this to 2.7 due to a conflict.
Please backport using cherry_picker on command line.
cherry_picker 79efbb719383386051c72f2ee932eeca8e033e6b 2.7

@obilaniu
Copy link
Contributor Author

May I call for a backport to 3.5 & 3.6 as well? They are often used in my field as well.

The backport to 3.7 “failed” (#13234), but only because of a flaky test. Can we ignore it?

@giampaolo
Copy link
Contributor

@obilaniu 3.6 and 3.5 branches accept security patches only:
https://devguide.python.org/#status-of-python-branches

@giampaolo
Copy link
Contributor

@obilaniu could you please create a PR for 2.7 branch as well?
#13212 (comment)

@obilaniu
Copy link
Contributor Author

@giampaolo Oh ok, then I think 3.7 is plenty good enough.

I looked at Python 2.7 and it looks unaffected by the problem. The failing codepaths related to copying xattrs are absent in Python 2, and indeed things like pip install . do work in Python 2 and not on Python 3. Perhaps you might choose to withdraw the needs backport to 2.7 tag.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants