httpdirfs
httpdirfs copied to clipboard
Segmentation fault if HOME not set
Version:
1.2.5-1
from debian bookworm
What is happening:
If HOME
is not set I am getting a Segmentation fault.
I am using it in a bash script which I execute using salt-stack therefore the environmen does not contain what someone would expect to be always set.
My command looks like this:
httpdirfs --cache --cache-location /tmp/httpdirfs --single-file-mode https://webserver/file /mnt/file
What do I expect:
Write an error message to stderr and exit whit exit status != 0
Workaround:
Set HOME
before running httpdirfs
For example:
HOME=/tmp httpdirfs --cache --cache-location /tmp/httpdirfs --single-file-mode https://webserver/file /mnt/file