SMOLNET PORTAL home about changes
sfeed_markread: fail early if creating a temporary file failed - sfeed - RSS and Atom parser
(URL) git clone git://git.codemadness.org/sfeed (git://git.codemadness.org)
(DIR) Log
(DIR) Files
(DIR) Refs
(DIR) README
(DIR) LICENSE
---
(DIR) commit 92e833940f8a418157e84f8c1827c40a6a8a44c3
(DIR) parent c63b60816ff996c89a07131da411269152852cd7
(URL) Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) application/vnd.lotus-organizer
Date: Fri, 7 Jul 2023 11:47:31 +0200
sfeed_markread: fail early if creating a temporary file failed
Diffstat:
M sfeed_markread | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
(DIR) diff --git a/sfeed_markread b/sfeed_markread
@@ -18,7 +18,7 @@ read)
cat >> "${urlfile}"
;;
unread)
- tmp=$(mktemp)
+ tmp="$(mktemp)" || exit 1
trap "rm -f ${tmp}" EXIT
[ -f "${urlfile}" ] || touch "${urlfile}" 2>/dev/null
LC_ALL=C awk -F '\t' '
Response: application/gopher-menu
Original URLgopher://codemadness.org/1/git/sfeed/commit/92e833940f8a4...
Content-Typeapplication/gopher-menu; charset=utf-8