mirror of
https://github.com/Dasharo/systemd.git
synced 2026-03-06 15:02:31 -08:00
dissect: do not trigger assertion on error
recurse_dir() does not provide 'sx' on error. Fixes #25862.
This commit is contained in:
@@ -901,11 +901,12 @@ static int mtree_print_item(
|
||||
int r;
|
||||
|
||||
assert(path);
|
||||
assert(sx);
|
||||
|
||||
if (IN_SET(event, RECURSE_DIR_ENTER, RECURSE_DIR_ENTRY)) {
|
||||
_cleanup_free_ char *escaped = NULL;
|
||||
|
||||
assert(sx);
|
||||
|
||||
if (isempty(path))
|
||||
path = ".";
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user