From 3869ca5a950b5e7dd0905599464ff468f17f912f69dce958668adc885f5a388b Mon Sep 17 00:00:00 2001 From: Thomas Oettli Date: Sat, 22 Aug 2026 06:12:38 +0200 Subject: [PATCH] install example config with a restrictive mode --- pbc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pbc b/pbc index c50eb61..0e29ff8 100755 --- a/pbc +++ b/pbc @@ -411,8 +411,8 @@ case "$action" in if [ -f "$SCRIPT_DIR/config.example" ]; then if $update || [ ! -f "$ETC_DIR/config.example" ]; then - echo "Copy example config to $ETC_DIR/config.example ..." - ! cp "$SCRIPT_DIR/config.example" "$ETC_DIR/config.example" && echo "Error copying file!" >&2 && exit 4 + echo "Install example config to $ETC_DIR/config.example ..." + ! install -m 0640 "$SCRIPT_DIR/config.example" "$ETC_DIR/config.example" && echo "Error installing file!" >&2 && exit 4 fi fi