mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
[PR #148] [MERGED] Add '"' chars around every argument passed to bash #3547
Labels
No labels
LTS merge
LTS merge
bug
bug
converted-to-discussion
doc-todo
documentation
duplicate
enhancement
file-transfer
firecfg
firejail-in-firejail
firetools
graphics
help wanted
information_old
installation
invalid
modif
moved
needinfo
networking
notabug
notourbug
old-version
overlayfs
packaging
profile-request
pull-request
question
question_old
removal
runtime-permissions
sandbox-ipc
security
stale
wiki
wiki
wontfix
wordpress
workaround
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/firejail#3547
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/netblue30/firejail/pull/148
Author: @brunonova
Created: 11/18/2015
Status: ✅ Merged
Merged: 11/19/2015
Merged by: @netblue30
Base:
master← Head:command-line-spaces📝 Commits (1)
d647b36Add '"' chars around every argument passed to bash📊 Changes
1 file changed (+3 additions, -2 deletions)
View changed files
📝
src/firejail/main.c(+3 -2)📄 Description
This seems to fix the problem with the spaces when a program is started through a shell (Bug #58).
Starting a program without using a shell is still working.
I haven't tested this thoroughly though, so I'm not sure if this causes any other problems.
However, spaces are not the only characters that can cause problems when starting a program through a shell.
If, for example, you open a file that contains
"somewhere, it will probably fail.So, to fully fix this,
"characters will have to be escaped. Other characters, like\and!may also have to be escaped.Or set "shell=none" as default, which would be even easier 😄 (but I suppose this is not the default for a reason).
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.