wget-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: wget2 | help for cache file location is wrong (#566)


From: Tim Rühsen
Subject: Re: wget2 | help for cache file location is wrong (#566)
Date: Sat, 30 Oct 2021 20:50:20 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1

Hey Darshit,

I guess directly replying doesn't reach anyone. Can you add your comment on Gitlab ?

BTW, it looks like ~/.wget-hsts is written into on my machine.

tim@ryzen:~/src/wget2$ l ~/.wget-*
-rw------- 1 tim tim 261  3. Okt 2018  /home/tim/.wget-hpkp
-rw------- 1 tim tim 655 24. Okt 19:13 /home/tim/.wget-hsts
-rw------- 1 tim tim 235 17. Okt 19:37 /home/tim/.wget-ocsp
-rw------- 1 tim tim   0 17. Okt 19:37 /home/tim/.wget-ocsp_hosts

tim@ryzen:~/src/wget2$ l ~/.local/share/wget/
insgesamt 16
drwxr-xr-x  2 tim tim 4096  4. Sep 20:08 .
drwxr-xr-x 84 tim tim 4096 30. Okt 20:42 ..
-rw-------  1 tim tim  476  4. Sep 20:08 .wget-hsts
-rw-------  1 tim tim  235  4. Sep 20:08 .wget-ocsp
-rw-------  1 tim tim    0  4. Sep 20:08 .wget-ocsp_hosts

Regards, Tim


On 27.10.21 15:41, Darshit Shah wrote:
The help output is incorrect in this case. The file should always be placed at 
`$XDG_DATA_HOME/wget/wget-hsts`.
Since if the envurobembt variable is not set, the default is ~/.local/share, 
Wget2 does the right thing storing it where it does.
We should change the help output to reflect this.

On Wed, Oct 27, 2021, at 14:23, Sandro (@SuperSandro2000) via Public discussion 
list for GNU Wget development wrote:
Sandro created an issue: https://gitlab.com/gnuwget/wget2/-/issues/566



According to the help

```
--hsts-file           Set file for HSTS caching. (default: ~/.wget-hsts)
```

the hsts file should be located in ``~/.wget-hsts`` but actually it is
in ``~/.local/share/wget/.wget-hsts``. I find this very confusing. Also
with `XDG_DATA_HOME` you can't point it to ``~/.wget-hsts`` because it
always appends wget.

--
Reply to this email directly or view it on GitLab:
https://gitlab.com/gnuwget/wget2/-/issues/566
You're receiving this email because of your account on gitlab.com.

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]