Skip to content

Use fstatat64 where available - #51785

Merged
bors merged 1 commit into
rust-lang:masterfrom
cuviper:fstatat64
Jun 25, 2018
Merged

Use fstatat64 where available#51785
bors merged 1 commit into
rust-lang:masterfrom
cuviper:fstatat64

Conversation

@cuviper

Copy link
Copy Markdown
Member

No description provided.

@cuviper

Copy link
Copy Markdown
MemberAuthor

Hopefully this will fix #51717 (comment).

@cuvipercuviper mentioned this pull request Jun 25, 2018
@emilyalbiniemilyalbini added beta-nominated Nominated for backporting to the compiler in the beta channel. T-libs-api [DEPRECATED; DO NOT USE] S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jun 25, 2018
@Mark-Simulacrum

Copy link
Copy Markdown
Member

@bors r+ p=50

This is a relatively critical bug; increasing priority.

@bors

bors commented Jun 25, 2018

Copy link
Copy Markdown
Collaborator

📌 Commit 65d31d7 has been approved by Mark-Simulacrum

@borsbors 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-SimulacrumMark-Simulacrum added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Jun 25, 2018
@bors

bors commented Jun 25, 2018

Copy link
Copy Markdown
Collaborator

⌛ 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
Copy Markdown
Member

@cuviper Can you prepare a beta backport?

@emilyalbiniemilyalbini mentioned this pull request Jun 25, 2018
@emilyalbiniemilyalbini removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Jun 25, 2018
@bors

bors commented Jun 25, 2018

Copy link
Copy Markdown
Collaborator

☀️ 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:masterJun 25, 2018
emilyalbini added a commit to emilyalbini/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
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

beta-acceptedAccepted for backporting to the compiler in the beta channel.S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.T-libs-api[DEPRECATED; DO NOT USE]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants

@cuviper@Mark-Simulacrum@bors@emilyalbini