--- atd.c.orig +++ atd.c @@ -293,7 +293,7 @@ run_file(const char *filename, uid_t uid if (buf.st_nlink > 2) { perr("Someboy is trying to run a linked script for job %8lu (%.500s)", - filename); + jobno, filename); } if ((fflags = fcntl(fd_in, F_GETFD)) < 0) perr("Error in fcntl"); --- daemon.h.orig +++ daemon.h @@ -5,12 +5,12 @@ void #ifdef HAVE_ATTRIBUTE_NORETURN __attribute__((noreturn)) #endif -pabort (const char *fmt, ...); +pabort (const char *fmt, ...) __attribute__((__format__(printf,1,2))); void #ifdef HAVE_ATTRIBUTE_NORETURN __attribute__((noreturn)) #endif -perr (const char *fmt, ...); +perr (const char *fmt, ...) __attribute__((__format__(printf,1,2))); extern int daemon_debug; --- panic.h.orig +++ panic.h @@ -26,7 +26,9 @@ void #ifdef HAVE_ATTRIBUTE_NORETURN __attribute__((noreturn)) #endif -perr(const char *a, ...); +perr(const char *a, ...) +__attribute__((__format__(printf,1,2))) +; void #ifdef HAVE_ATTRIBUTE_NORETURN __attribute__((noreturn))