mirror of
https://github.com/netblue30/firejail.git
synced 2026-05-15 14:16:14 -06:00
remove trailing spaces in etc/templates/new_syscalls.txt
Trailing spaces are added after the second column, even if the third column is empty, let's fix it.
This commit is contained in:
parent
a4e6495fd1
commit
4a5ed8364c
1 changed files with 6 additions and 1 deletions
|
|
@ -216,7 +216,12 @@ function gen_new_syscalls()
|
|||
echo "▶ $header" >> "$NEW_SYSCALLS_FILE"
|
||||
|
||||
syscalls_block=$(extract_block "$ALL_SYSCALLS" "$header")
|
||||
syscalls_block=$(echo "$syscalls_block" | awk '{printf "%-5s %-32s %s\n", $1, $2, $3}' | sort -n)
|
||||
syscalls_block=$(
|
||||
echo "$syscalls_block" |
|
||||
awk '{printf "%-5s %-32s %s\n", $1, $2, $3}' | # Align columns.
|
||||
sed 's/[[:space:]]*$//' | # Remove all trailing spaces.
|
||||
sort -n
|
||||
)
|
||||
syscalls_names=$(echo "$syscalls_block" | awk '{print $2}')
|
||||
|
||||
if [[ ! -f "$old_header" ]] # If the header does not exist in the old directory, add all syscalls.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue