Skip to content

(cargo) not installing with +x permissions (stat? chmod?) #2456

Closed
@killerswan

Description

@killerswan

The quick fix may be to just run the system cp binary on unix platforms, but tracking down a relatively cross-platform way to stat and chmod 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 or fstat function there yet. Am I missing it or is this a gap?

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