Skip to content

mv: moving a directory with a socket or device node across filesystems fails #15113

Description

@abendrothj
mkdir -p d && python3 -c 'import socket; socket.socket(socket.AF_UNIX).bind("d/s")'
mv d /dev/shm/

The move fails, because the socket inside the directory goes through the regular file copy, which can't open it. FIFOs inside the directory are recreated with 0666 minus the umask instead of their own mode.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions