mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2026-03-14 21:10:11 +01:00
crashlog: on server only allows write to subdir log.
prevent people to write to .ssh/ that could be bad.
This commit is contained in:
parent
e6a35436b6
commit
5dad7b69fc
1 changed files with 3 additions and 3 deletions
|
|
@ -33,11 +33,11 @@ done
|
|||
shift $(($OPTIND - 1))
|
||||
|
||||
file="$*"
|
||||
dir=$(dirname "$file")
|
||||
|
||||
if [ "$file" == "." ]
|
||||
if [ "$dir" != "log" ]
|
||||
then
|
||||
echo "Implicit filename \".\" not allowed."
|
||||
echo "You must specify the exact target filename"
|
||||
echo "only allowed to write to log/"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue