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

[SR-6531] FileManager copyItem in swift-corelibs-foundation does not preserve permissions #4045

Closed
swift-ci opened this issue Dec 5, 2017 · 2 comments

Comments

@swift-ci
Copy link
Contributor

swift-ci commented Dec 5, 2017

Previous ID SR-6531
Radar None
Original Reporter jaybuff (JIRA User)
Type Bug
Status Resolved
Resolution Done
Additional Detail from JIRA
Votes 0
Component/s Foundation
Labels Bug, Linux
Assignee @spevans
Priority Medium

md5: 5443cb66a6a20b52bf815eefe2f518e7

Issue Description:

FileManager.copyItem(atPath:toPath🙂 creates a new file using the umask during a copy, thus not preserving permissions during copy operations. Under darwin (thus not using the bridged foundation), original file permissions are preserved.

@spevans
Copy link
Collaborator

spevans commented Feb 21, 2019

#1933

@spevans
Copy link
Collaborator

spevans commented Apr 24, 2019

This has been fixed and also backported to swift-5.0.1-RELEASE

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@shahmishal shahmishal transferred this issue from apple/swift May 5, 2022
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants