diff --git a/src/dissect/dissect.c b/src/dissect/dissect.c index 10af26888e..ce4a99bc0b 100644 --- a/src/dissect/dissect.c +++ b/src/dissect/dissect.c @@ -1709,6 +1709,8 @@ static int action_detach(const char *path) { struct stat st; int r; + assert(path); + fd = open(path, O_PATH|O_CLOEXEC); if (fd < 0) return log_error_errno(errno, "Failed to open '%s': %m", path);