Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Segmentation fault if HOME not set #154

Open
koebi001 opened this issue Jun 12, 2024 · 1 comment
Open

Segmentation fault if HOME not set #154

koebi001 opened this issue Jun 12, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@koebi001
Copy link

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
@fangfufu fangfufu added the bug Something isn't working label Jun 14, 2024
@fangfufu
Copy link
Owner

That's understandable. I never expected people to use this without a home directory... I will fix this eventually. Feel free to submit a patch though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants