diff options
| author | Thomas Voss <mail@thomasvoss.com> | 2026-03-25 02:53:16 +0100 |
|---|---|---|
| committer | Thomas Voss <mail@thomasvoss.com> | 2026-03-25 02:53:16 +0100 |
| commit | d9f6645db5ef46c5db488691ee602847beb9508e (patch) | |
| tree | 018183acafff3063b675b9a9bd849a47c84e1f7b /doasedit | |
| parent | 908c924e768611242abe8f649b43e69a4c092d9c (diff) | |
Fix POSIX-compliance bug
Diffstat (limited to 'doasedit')
| -rwxr-xr-x | doasedit | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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." |