mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-03-15 18:50:12 +03:00
The code existed in machinectl to use stdin/stdout if the path for import/export tar/raw was empty or dash (-) but a check to `fd_verify_regular` in importd prevented it from working. Update the check instead to explicitly check for regular file or pipe/fifo. Fixes #14346 (cherry picked from commit 1209ef94bd09bdc67a7b51f084910a5982f2f010) (cherry picked from commit cfced59a4bd88e7d77ecf9ed40a22ec215356a83)