kiss: preserve sticky bit in file_rwx (#80)

Co-authored-by: aabacchus <ben@bvnf.space>
Reviewed-on: https://codeberg.org/kiss-community/kiss/pulls/80
Co-authored-by: phoebos <phoebos@noreply.codeberg.org>
Co-committed-by: phoebos <phoebos@noreply.codeberg.org>
This commit is contained in:
phoebos 2022-10-03 13:47:38 +02:00 committed by Pratham
parent f50ea0caa5
commit 7de9d70fe4

4
kiss
View File

@ -1356,6 +1356,10 @@ file_rwx() {
[st]*) o=$((o + 1)) ;;
esac
case $rwx in
[tT]*) oct=1$oct
esac
case $((${c%?} % 3)) in 0)
oct=$oct$o
o=0