78 struct stat * statp,
const char **path)
81 msg_warn(
"bad mail queue name: %s", queue_name);
96 if (
lstat(*path, statp) < 0) {
101 if (!S_ISREG(statp->st_mode)) {
102 msg_warn(
"%s: uid %ld: not a regular file", *path, (
long) statp->st_uid);
116 #define MINUTE_SECONDS 60
118 if (statp->st_nlink > 1) {
120 msg_info(
"%s: uid %ld: file has %d links", *path,
121 (
long) statp->st_uid, (
int) statp->st_nlink);
123 msg_warn(
"%s: uid %ld: file has %d links", *path,
124 (
long) statp->st_uid, (
int) statp->st_nlink);
int mail_queue_id_ok(const char *queue_id)
int mail_queue_name_ok(const char *queue_name)
#define MAIL_QUEUE_STAT_READY
const char * mail_queue_path(VSTRING *buf, const char *queue_name, const char *queue_id)
int mail_open_ok(const char *queue_name, const char *queue_id, struct stat *statp, const char **path)
void msg_warn(const char *fmt,...)
void msg_info(const char *fmt,...)