mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-01-18 13:18:40 +00:00
0d307fdace
Fix from ChimeraOS: fa7697fd99 (diff-9a8d1fe67ff1847580d67f802d4e030c51fec313a023b1e51240cea9f3129006)
22 lines
726 B
Diff
22 lines
726 B
Diff
diff --git a/usr/bin/steamos-polkit-helpers/steamos-priv-write b/usr/bin/steamos-polkit-helpers/steamos-priv-write
|
|
index 907133b..caaa807 100755
|
|
--- a/usr/bin/steamos-polkit-helpers/steamos-priv-write
|
|
+++ b/usr/bin/steamos-polkit-helpers/steamos-priv-write
|
|
@@ -13,15 +13,14 @@ WRITE_VALUE="$2"
|
|
function CommitWrite()
|
|
{
|
|
echo "commit: $WRITE_VALUE -> $WRITE_PATH" | systemd-cat -t p-steamos-priv-write -p warning
|
|
- echo "$WRITE_VALUE" > "$WRITE_PATH"
|
|
chmod a+w "$WRITE_PATH"
|
|
+ echo "$WRITE_VALUE" > "$WRITE_PATH"
|
|
exit 0
|
|
}
|
|
|
|
function DeclineWrite()
|
|
{
|
|
echo "decline: $WRITE_VALUE -> $WRITE_PATH" | systemd-cat -t p-steamos-priv-write -p err
|
|
- echo "$WRITE_VALUE" > "$WRITE_PATH"
|
|
exit 1
|
|
}
|
|
|