[GH-ISSUE #2045] Profile autodetection fails when path contains spaces #1381

Closed
opened 2026-05-05 08:00:40 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @reinerh on GitHub (Jul 16, 2018).
Original GitHub issue: https://github.com/netblue30/firejail/issues/2045

A Debian user has reported that firejail doesn't use the correct profile if the path contains spaces.
I was able to confirm that:

$ mkdir /tmp/nonexisting\ profile
$ cp /bin/ls /tmp/nonexisting\ profile/
$ firejail --debug /tmp/nonexisting\ profile/ls 
Autoselecting /bin/bash as shell
Building quoted command line: '/tmp/nonexisting profile/ls' 
Command name #nonexisting#
Attempting to find default.profile...

It tries to load the profile for the program "nonexisting" and falls back to the default profile.

Originally created by @reinerh on GitHub (Jul 16, 2018). Original GitHub issue: https://github.com/netblue30/firejail/issues/2045 A Debian user [has reported](https://bugs.debian.org/903831) that firejail doesn't use the correct profile if the path contains spaces. I was able to confirm that: ``` $ mkdir /tmp/nonexisting\ profile $ cp /bin/ls /tmp/nonexisting\ profile/ $ firejail --debug /tmp/nonexisting\ profile/ls Autoselecting /bin/bash as shell Building quoted command line: '/tmp/nonexisting profile/ls' Command name #nonexisting# Attempting to find default.profile... ``` It tries to load the profile for the program "nonexisting" and falls back to the default profile.
gitea-mirror 2026-05-05 08:00:40 -06:00
  • closed this issue
  • added the
    bug
    label
Author
Owner

@netblue30 commented on GitHub (Jul 17, 2018):

I'll try to fix it, thanks.

<!-- gh-comment-id:405556004 --> @netblue30 commented on GitHub (Jul 17, 2018): I'll try to fix it, thanks.
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#1381
No description provided.