kiss: fix sticky bits

This commit is contained in:
git-bruh 2022-10-03 18:48:55 +05:30
parent 57b3343937
commit f42bafa86e
No known key found for this signature in database
5 changed files with 33 additions and 1 deletions

View File

@ -1,5 +1,7 @@
#!/bin/sh -e
patch -p1 < rwx.patch
mkdir -p \
"$1/usr/bin" \
"$1/usr/share/doc/kiss"

View File

@ -1,2 +1,3 @@
2a585772fecc37fb7651fa155df609eae9c932e232211184e852c75e415dc5d5
efca06d0a52037c732007f33f99cd368a836b5f9fec3ae314cfd73182f337c01
05658724c323a11a050cbcfa7a1e4179dd8e15c51e5cb764352b5c6edd6fc0c8

View File

@ -0,0 +1,28 @@
From 7de9d70fe4a2813546bbc697e0dcd7d549a4c71c Mon Sep 17 00:00:00 2001
From: phoebos <phoebos@noreply.codeberg.org>
Date: Mon, 3 Oct 2022 13:47:38 +0200
Subject: [PATCH] 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>
---
kiss | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/kiss b/kiss
index 2a8c176..f7dc66c 100755
--- a/kiss
+++ b/kiss
@@ -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

View File

@ -1,2 +1,3 @@
https://github.com/kiss-community/kiss/archive/VERSION-1.tar.gz
https://github.com/kisslinux/website/archive/f0525d4e00c5e07138ac2ceb53936d0b221608e7.tar.gz docs
patches/rwx.patch

View File

@ -1 +1 @@
5.6.2 1
5.6.2 2