-
Notifications
You must be signed in to change notification settings - Fork 13.4k
(cargo) not installing with +x permissions (stat? chmod?) #2456
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
Comments
cc @erickt So this is an example which shows how to use
|
Title changed to reflect further information: stat simply hasn't been added to the libc bindings yet. |
Actually, I don't need to track this in an issue. |
celinval
added a commit
to celinval/rust-dev
that referenced
this issue
Jun 4, 2024
Co-authored-by: Celina G. Val <[email protected]>
tshepang
pushed a commit
to tshepang/rust
that referenced
this issue
Jun 9, 2025
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The quick fix may be to just run the system
cp
binary on unix platforms, but tracking down a relatively cross-platform way tostat
andchmod
files is probably worth the trouble.Then the os::copy_file function should perhaps be modified to copy permissions, too...
There are a whole lot of posix functions in libc.rs, but I haven't seen a
stat
orfstat
function there yet. Am I missing it or is this a gap?The text was updated successfully, but these errors were encountered: