|
|
sfeed_update: mktemp: improve compatibility with older systems - sfeed - RSS and Atom parser |
|
|
 |
git clone git://git.codemadness.org/sfeed (git://git.codemadness.org) |
|
|
 |
Log |
|
|
 |
Files |
|
|
 |
Refs |
|
|
 |
README |
|
|
 |
LICENSE |
|
|
|
--- |
|
|
 |
commit 62bfed65ca91c34ea24b81b191c23d4542a7075b |
|
|
 |
parent 9754fe74f7b5c0600cc41eef8c6f5c8305a74a18 |
|
|
 |
Author: Hiltjo Posthuma <hiltjo@codemadness.org> (mailto://) |
application/vnd.lotus-organizer |
|
|
Date: Tue, 26 Dec 2023 15:23:15 +0100 |
|
|
|
|
|
|
|
sfeed_update: mktemp: improve compatibility with older systems |
|
|
|
|
|
|
|
Tested on NetBSD 5.1: |
|
|
|
- mktemp -p doesn't exist there yet. |
|
|
|
- mktemp without any arguments/template doesnt work |
|
|
|
- mktemp -d without any arguments/template doesnt work |
|
|
|
|
|
|
|
Diffstat: |
|
|
|
M sfeed_update | 2 +- |
|
|
|
|
|
|
|
1 file changed, 1 insertion(+), 1 deletion(-) |
|
|
|
--- |
|
|
 |
diff --git a/sfeed_update b/sfeed_update |
|
|
|
@@ -212,7 +212,7 @@ main() { |
|
|
|
# load config file. |
|
|
|
loadconfig "$1" |
|
|
|
# fetch feeds and store in temporary directory. |
|
|
|
- sfeedtmpdir="$(mktemp -p "${TMPDIR:-/tmp}" -d 'sfeed_XXXXXX')" || die |
|
|
|
+ sfeedtmpdir="$(mktemp -d "${TMPDIR:-/tmp}/sfeed_XXXXXX")" || die |
|
|
|
mkdir -p "${sfeedtmpdir}/feeds" |
|
|
|
touch "${sfeedtmpdir}/ok" || die |
|
|
|
# make sure path exists. |
|