From d9f6645db5ef46c5db488691ee602847beb9508e Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Wed, 25 Mar 2026 02:53:16 +0100 Subject: Fix POSIX-compliance bug --- doasedit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doasedit b/doasedit index 6786e43..b10c99f 100755 --- a/doasedit +++ b/doasedit @@ -43,7 +43,7 @@ PROG=${0##*/} [ -L "$1" ] && die 2 "$1: File is a symbolic link, refusing to edit." [ ! -r "$1" ] && die 3 "$1: File cannot be read by the current user." -tmp=$(mktemp --tmpdir doasedit.XXXXXXXX --suffix="${1//\//-}") || \ +tmp=$(mktemp --tmpdir doasedit.XXXXXXXX --suffix="$(echo "$1" | tr '/' '-')") || die 4 "Could not create temporary file." trap "rm -f $tmp" EXIT HUP INT TERM cp "$1" "$tmp" || die 5 "$1: Unable to copy file." -- cgit v1.2.3