Skip to content
Snippets Groups Projects

Implement Slackware specific information for rc.ntpd

+ 2
3
@@ -227,13 +227,12 @@ ntp_service ()
if ((st_ntpd.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) == 0755) {
g_debug("Starting ntpd: rc.ntpd has appropriate permissions (0755).");
return "ntpd";
}
else if ((st_ntpd.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) == 0644) {
} else if ((st_ntpd.st_mode & (S_IRWXU | S_IRWXG | S_IRWXO)) == 0644) {
g_debug("Unable to start ntpd: rc.ntpd has insufficient permissions (0644).");
return NULL;
}
}
g_warning("Unable to start ntpd: rc.ntpd is not a regular file or does not exist.");
g_warning("Unable to start ntpd: rc.ntpd is not a regular file or does not exist.");
return NULL;
#else
return NULL;
Loading