Introduction
Introduction Statistics Contact Development Disclaimer Help
sfeed_opml_export: disallow using a directory as a config file - sfeed - RSS an…
git clone git://git.codemadness.org/sfeed
Log
Files
Refs
README
LICENSE
---
commit 03a0a0ddb450f33e59a911a8be1b17d31507fa43
parent 0a5e36032373b34558e62f309be0b0ef7e925459
Author: Hiltjo Posthuma <[email protected]>
Date: Thu, 28 Dec 2023 16:48:06 +0100
sfeed_opml_export: disallow using a directory as a config file
Same as the commit 9754fe74f7b5c0600cc41eef8c6f5c8305a74a18 for sfeed_update
Tested on NetBSD 5.1: evaluating directories as config files could allow
garbage, so disallow it.
Devices / fifo, etc are still allowed.
Diffstat:
M sfeed_opml_export | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/sfeed_opml_export b/sfeed_opml_export
@@ -15,7 +15,7 @@ loadconfig() {
fi
# config is loaded here to be able to override $sfeedpath or functions.
- if [ -r "${configpath}" ]; then
+ if [ -r "${configpath}" ] && [ ! -d "${configpath}" ]; then
. "${configpath}"
else
printf "Configuration file \"%s\" cannot be read.\n" "${config…
You are viewing proxied material from codemadness.org. The copyright of proxied material belongs to its original authors. Any comments or complaints in relation to proxied material should be directed to the original authors of the content concerned. Please see the disclaimer for more details.