Skip to content

run: Error out if file forwarding of empty paths is attempted - #6693

Merged
swick merged 1 commit into
flatpak:mainfrom
swick:wip/file-forwarding-empty-path
Jun 23, 2026
Merged

swick merged 1 commit into
flatpak:mainfrom
swick:wip/file-forwarding-empty-path

Conversation

@swick

@swick swick commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

The file forwarding feature errors out when the path or URI does not lead to an actual file that can be forwarded. The empty path never describes an actual file, so we always have to error out.

Without the check, we would get a NULL path from
flatpak_file_get_path_cached and crash later.

Closes: #6689

The file forwarding feature errors out when the path or URI does not
lead to an actual file that can be forwarded. The empty path never
describes an actual file, so we always have to error out.

Without the check, we would get a NULL path from
`flatpak_file_get_path_cached` and crash later.

Closes: flatpak#6689
@swick
swick added this pull request to the merge queue Jun 23, 2026
Merged via the queue into flatpak:main with commit c4fce9e Jun 23, 2026
11 checks passed
@swick
swick deleted the wip/file-forwarding-empty-path branch June 23, 2026 08:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Segmentation fault with --file-forwarding and empty argument

2 participants