[GH-ISSUE #1383] Programs with periods in their name fail to use their profile when run via symlink method #945

Closed
opened 2026-05-05 07:12:04 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @SkewedZeppelin on GitHub (Jul 14, 2017).
Original GitHub issue: https://github.com/netblue30/firejail/issues/1383

Examples: gimp-2.8.profile, idea.sh.profile

Related to #1268

Originally created by @SkewedZeppelin on GitHub (Jul 14, 2017). Original GitHub issue: https://github.com/netblue30/firejail/issues/1383 Examples: gimp-2.8.profile, idea.sh.profile Related to #1268
gitea-mirror 2026-05-05 07:12:04 -06:00
Author
Owner

@netblue30 commented on GitHub (Jul 16, 2017):

Probably we will have to find another way to extract the name of the application. Currently we go up to the first dot in the name.

<!-- gh-comment-id:315610904 --> @netblue30 commented on GitHub (Jul 16, 2017): Probably we will have to find another way to extract the name of the application. Currently we go up to the first dot in the name.
Author
Owner

@SkewedZeppelin commented on GitHub (Jul 16, 2017):

This is the code yea? https://github.com/netblue30/firejail/blob/master/src/firejail/util.c#L557

Why does it ever need to stop at a period? Removing "*ptr2 != '.' &&" fixes this issue. Wouldn't it just be better to split at a ' ' instead? Is there a weird edge case where there will exist a period after the file name?
What was the issue that 63e0859305 fixed?

<!-- gh-comment-id:315645202 --> @SkewedZeppelin commented on GitHub (Jul 16, 2017): This is the code yea? https://github.com/netblue30/firejail/blob/master/src/firejail/util.c#L557 Why does it ever need to stop at a period? Removing "*ptr2 != '.' &&" fixes this issue. Wouldn't it just be better to split at a ' ' instead? Is there a weird edge case where there will exist a period after the file name? What was the issue that 63e0859305118a1c59d4f47eea4fb9352081b496 fixed?
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#945
No description provided.