Skip to content

Copying files with shutil.move will fail on SELinux #39

@iskandr

Description

@iskandr

shutil.move will use copy2 as a fallback if os.rename fails. copy2 works in two stages: (1) actually copying the file and (2) adjusting its permissions. Step 2 will fail, though the copied file exists at the desired destination. This is supposed to only happen between file systems but @julia326 observed it in a situation that we think is the same file system.

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