mirror of
https://codeberg.org/kiss-community/kiss
synced 2024-12-24 16:10:05 -07:00
kiss: fix UB around find
This commit is contained in:
parent
1ea02cc354
commit
6d205e8095
6
kiss
6
kiss
@ -535,7 +535,11 @@ pkg_manifest() (
|
|||||||
# contents.
|
# contents.
|
||||||
# sed: Remove the first character in each line (./dir -> /dir) and
|
# sed: Remove the first character in each line (./dir -> /dir) and
|
||||||
# remove all lines which only contain '.'.
|
# remove all lines which only contain '.'.
|
||||||
find . -type d -exec printf '%s/\n' {} + -o -print | sort -r |
|
{
|
||||||
|
find . -type d -exec printf '%s/\n' {} +
|
||||||
|
find . ! -type d -print
|
||||||
|
|
||||||
|
} | sort -r |
|
||||||
sed '/^\.\/$/d;ss.ss' > "${2:-$pkg_dir}/$1/$pkg_db/$1/manifest"
|
sed '/^\.\/$/d;ss.ss' > "${2:-$pkg_dir}/$1/$pkg_db/$1/manifest"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user