Replace %m in dh_syslog() with %s and strerror()
Use fstatat()