Skip to content

Use fstatat64 where available #51785

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Merged
merged 1 commit into from
Jun 25, 2018
Merged

Use fstatat64 where available #51785

merged 1 commit into from
Jun 25, 2018

Conversation

cuviper
Copy link
Member

@cuviper cuviper commented Jun 25, 2018

No description provided.

@cuviper
Copy link
Member Author

cuviper commented Jun 25, 2018

Hopefully this will fix #51717 (comment).

@pietroalbini pietroalbini added beta-nominated Nominated for backporting to the compiler in the beta channel. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 25, 2018
@Mark-Simulacrum
Copy link
Member

@bors r+ p=50

This is a relatively critical bug; increasing priority.

@bors
Copy link
Collaborator

bors commented Jun 25, 2018

📌 Commit 65d31d7 has been approved by Mark-Simulacrum

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 25, 2018
@Mark-Simulacrum Mark-Simulacrum added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Jun 25, 2018
@bors
Copy link
Collaborator

bors commented Jun 25, 2018

⌛ Testing commit 65d31d7 with merge 2a1c4ee...

bors added a commit that referenced this pull request Jun 25, 2018
cuviper added a commit to cuviper/rust that referenced this pull request Jun 25, 2018
In effect, these just casted `&mut stat64` to `*mut stat64`, twice.
That's harmless, but it masked a problem when this was copied to new
code calling `fstatat`, which takes a pointer to `struct stat`.  That
will be fixed by rust-lang#51785, but let's remove the unnecessary casts here
too.
@Mark-Simulacrum
Copy link
Member

@cuviper Can you prepare a beta backport?

@pietroalbini pietroalbini removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jun 25, 2018
@bors
Copy link
Collaborator

bors commented Jun 25, 2018

☀️ Test successful - status-appveyor, status-travis
Approved by: Mark-Simulacrum
Pushing 2a1c4ee to master...

bors added a commit that referenced this pull request Jun 25, 2018
[beta] Rollup backports

Merged and approved:

* #51785: Use fstatat64 where available

r? @ghost
@bors bors merged commit 65d31d7 into rust-lang:master Jun 25, 2018
pietroalbini added a commit to pietroalbini/rust that referenced this pull request Jun 26, 2018
…ulacrum

Remove unnecessary stat64 pointer casts

In effect, these just casted `&mut stat64` to `*mut stat64`, twice.
That's harmless, but it masked a problem when this was copied to new
code calling `fstatat`, which takes a pointer to `struct stat`.  That
will be fixed by rust-lang#51785, but let's remove the unnecessary casts here
too.
@cuviper cuviper deleted the fstatat64 branch March 27, 2019 22:21
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
beta-accepted Accepted for backporting to the compiler in the beta channel. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-libs-api Relevant to the library API team, which will review and decide on the PR/issue.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants