Skip to content

Always use temporary extration path #836

@valoq

Description

@valoq

Currently ouch creates a temporary directory (.tmp-ouch-XXXXXX) for extraction in case of most file formats unless the -d option is used to directly specify a output directory.
However for some formats, the extraction is done in a temporary directory in /tmp/tmpXXXXX or directly inside the current working directory itself

The use of temporary directories should be aligned to use the same path for all formats and this temporary path should be defined globally instead of inside specific archive format functions

If all extraction were to take place inside a temporary directory within the current working directory before they are renamed to the actual archive directory name, landlock restriction can be made more effective as explained here: #723 (comment)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions