Skip to content

rustup does not preserve permissions in toolchain components #1140

Closed
@RalfJung

Description

@RalfJung

The rust-src component contains some files that are marked executable, e.g. src/jemalloc/include/jemalloc/internal/private_namespace.sh. When I download the component manually from https://static.rust-lang.org/dist/rust-src-nightly.tar.xz, I can see that the permissions are correct in that file (same for the .gz). However, ~/.rustup/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/src/jemalloc/include/jemalloc/internal/private_namespace.sh is not executable, so permissions get lost somewhere on the way.

I am trying to figure out how rustup goes about extracting the tarball, but the code is so abstract I couldn't find the right place yet...

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions