[GH-ISSUE #4395] Firejail rejects empty arguments #2650

Closed
opened 2026-05-05 09:18:50 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @reinerh on GitHub (Jul 11, 2021).
Original GitHub issue: https://github.com/netblue30/firejail/issues/4395

A Ubuntu user reported that firejail rejects arguments to the application if they are empty.
But for some applications empty arguments are actually valid use cases.
Even with the argument separator (--) firejail still rejects it.

Example:

$ echo ''

$ firejail -- echo ''
Error: too short arguments
$

This is the location of the check: e66ba7cc48/src/firejail/main.c (L1027-L1030)

Originally created by @reinerh on GitHub (Jul 11, 2021). Original GitHub issue: https://github.com/netblue30/firejail/issues/4395 A Ubuntu user [reported](https://bugs.launchpad.net/ubuntu/+source/firejail/+bug/1934698) that firejail rejects arguments to the application if they are empty. But for some applications empty arguments are actually valid use cases. Even with the argument separator (`--`) firejail still rejects it. Example: ``` $ echo '' $ firejail -- echo '' Error: too short arguments $ ``` This is the location of the check: https://github.com/netblue30/firejail/blob/e66ba7cc483df0de8060823ebd7ebaff9c7c61c2/src/firejail/main.c#L1027-L1030
gitea-mirror 2026-05-05 09:18:50 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Jul 11, 2021):

will do, thanks!

<!-- gh-comment-id:877819527 --> @netblue30 commented on GitHub (Jul 11, 2021): will do, thanks!
Author
Owner

@rusty-snake commented on GitHub (Dec 21, 2021):

fix bug: firejail rejects empty arguments

So we can close here?

<!-- gh-comment-id:998792658 --> @rusty-snake commented on GitHub (Dec 21, 2021): > [fix bug: firejail rejects empty arguments](https://github.com/netblue30/firejail/commit/eba4af3be75f58cc6d27a368dcc53fe6461de033) So we can close here?
Author
Owner

@netblue30 commented on GitHub (Dec 21, 2021):

Yes, closing.

<!-- gh-comment-id:998822026 --> @netblue30 commented on GitHub (Dec 21, 2021): Yes, closing.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#2650
No description provided.