mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 06:06:02 -06:00
[PR #6556] [MERGED] build: sort.py: strip whitespace in profiles #6060
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#6060
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/6556
Author: @kmk3
Created: 11/29/2024
Status: ✅ Merged
Merged: 12/5/2024
Merged by: @kmk3
Base:
master← Head:sort-py-strip-ws📝 Commits (4)
ced8b19build: sort.py: operate mostly on fixed_line406b1cbbuild: sort.py: rename line variables53ff8e0build: sort.py: strip trailing whitespace in all lines08e5f81build: sort.py: strip whitespace in commands📊 Changes
1 file changed (+21 additions, -14 deletions)
View changed files
📝
contrib/sort.py(+21 -14)📄 Description
build: sort.py: strip trailing whitespace in all lines
Currently the output is mangled if the last item on the line contains
trailing whitespace and is moved when sorting.
So remove trailing whitespace in all lines (that is, not just in lines
containing supported commands).
Leave leading whitespace as is for now since it could potentially be
used for indentation.
Before:
After:
build: sort.py: strip whitespace in commands
Currently whitespace is left as is within an entry.
In a
protocolentry, if there is whitespace between the command andits argument or around an item, the item in question is dropped from the
output.
Changes:
protocol: Strip all whitespace in the argumentincluding any extra whitespace between a command and its argument
Note: Whitespace characters inside paths are left as is, as some paths
(such as
Foo Barmay contain spaces.Before:
After:
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.