[Tails-dev] /usr/local/sbin/htpdate suggestion

Delete this message

Reply to this message
Author: adrelanos
Date:  
To: The Tails public development discussion list
Subject: [Tails-dev] /usr/local/sbin/htpdate suggestion
Hi,

In /usr/local/sbin/htpdate, please change

my @cmdline = ('curl', @curl_options, $url);

to

my @cmdline = ('/usr/bin/curl', @curl_options, $url);

Reasons:
- Most scripts hardcode the paths.
- It's safer, since /usr/local/sbin/htpdate starts curl as root.
- If you ever add a curl uwt wrapper, you will still want to use
/usr/bin/curl directly, since you are using --socks5-hostname there.

Cheers,
adrelanos