angeloc / htpdate

The (new) home of HTTP Time Protocol (HTP)
Other
38 stars 5 forks source link

Only drop privileges when configured #21

Closed twekkel closed 2 years ago

twekkel commented 2 years ago

You inherited some bugs from 1.2.2. This one is too ugly not to be fixed.

Every non-root user will get this error; seteuid() 0... as it tries to drop privileges when not possible

$ ./htpdate www.gazzetta.it Offset 1.000 seconds seteuid() 0