OBS-URL: https://build.opensuse.org/package/show/Base:System/at?expand=0&rev=53100d87b42901e6f6ab596e79dac7ab
42 lines
1022 B
Diff
42 lines
1022 B
Diff
--- 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))
|