Skip to content

tool_communication: check path for 'tool_device_name' is free/available/owned by user if it exists #108

@gavanderhoorn

Description

@gavanderhoorn

As reported in #107, if the path configured for tool_device_name already exists, there is a chance socat will be unable to use it.

This could be due to permissions on the link, the file already existing (with access permissions which don't allow sufficient access) or the path existing but being a directory (a real one).

The tool_communication could check for this and error out with an appropriate message.

Right now the only output would be something similar to:

socat[15820] E unlink("/tmp/ttyUR"): Operation not permitted

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions