blob: d51bf4453a0a5fd7f208e38555b431a0ef05d3de (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#!/bin/sh
# Accepts files from remote users.
ROOT="/srv/tlsd/files"
USERDIR="${ROOT}/${ALIAS}"
if read -r LINE
then if [ -d "${USERDIR}" ]
then cat > "${USERDIR}/$(echo "${LINE}" | sed -e 's/\.\.//g')"
else echo "No directory for you!"
fi
fi
|