added my Recipes
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
From 6c8fe883df993b9e7987c8f1c849962f8007a373 Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Mon, 29 Aug 2022 12:50:37 -0700
|
||||
Subject: [PATCH] ez-ipupdate: Include time.h for time() API prototype
|
||||
|
||||
Fix printf format specifiers for snprintf
|
||||
|
||||
Upstream-Status: Pending
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
ez-ipupdate.c | 6 ++++--
|
||||
1 file changed, 4 insertions(+), 2 deletions(-)
|
||||
|
||||
diff --git a/ez-ipupdate.c b/ez-ipupdate.c
|
||||
index 15a4c13..5cbe7f3 100644
|
||||
--- a/ez-ipupdate.c
|
||||
+++ b/ez-ipupdate.c
|
||||
@@ -38,6 +38,8 @@
|
||||
# include <config.h>
|
||||
#endif
|
||||
|
||||
+#include <time.h>
|
||||
+
|
||||
// you man very well need to edit this, don't worry though, email is only sent
|
||||
// if bad things happend and it has to exit when in daemon mode.
|
||||
#define SEND_EMAIL_CMD "mail"
|
||||
@@ -2483,7 +2485,7 @@ int DHS_update_entry(void)
|
||||
p += strlen(p);
|
||||
limit = BUFFER_SIZE - 1 - strlen(buf);
|
||||
|
||||
- snprintf(buf, BUFFER_SIZE, "Content-length: %d\015\012", strlen(putbuf));
|
||||
+ snprintf(buf, BUFFER_SIZE, "Content-length: %lu\015\012", strlen(putbuf));
|
||||
output(buf);
|
||||
snprintf(buf, BUFFER_SIZE, "\015\012");
|
||||
output(buf);
|
||||
@@ -2620,7 +2622,7 @@ int DHS_update_entry(void)
|
||||
p += strlen(p);
|
||||
limit = BUFFER_SIZE - 1 - strlen(buf);
|
||||
|
||||
- snprintf(buf, BUFFER_SIZE, "Content-length: %d\015\012", strlen(putbuf));
|
||||
+ snprintf(buf, BUFFER_SIZE, "Content-length: %lu\015\012", strlen(putbuf));
|
||||
output(buf);
|
||||
snprintf(buf, BUFFER_SIZE, "\015\012");
|
||||
output(buf);
|
||||
@@ -0,0 +1,14 @@
|
||||
Remove EXTRASRC and EXTRAOBJ from obj list
|
||||
|
||||
--- ez-ipupdate-3.0.11b7/Makefile.am.orig 2014-07-02 13:47:50.758034983 -0600
|
||||
+++ ez-ipupdate-3.0.11b7/Makefile.am 2014-07-02 13:48:38.406034650 -0600
|
||||
@@ -1,7 +1,7 @@
|
||||
|
||||
bin_PROGRAMS = ez-ipupdate
|
||||
-ez_ipupdate_SOURCES = ez-ipupdate.c conf_file.c conf_file.h md5.c md5.h cache_file.c cache_file.h error.h pid_file.c pid_file.h dprintf.h @EXTRASRC@
|
||||
-ez_ipupdate_LDADD = @EXTRAOBJ@
|
||||
+ez_ipupdate_SOURCES = ez-ipupdate.c conf_file.c conf_file.h md5.c md5.h cache_file.c cache_file.h error.h pid_file.c pid_file.h dprintf.h
|
||||
+ez_ipupdate_LDADD =
|
||||
|
||||
EXTRA_DIST = getpass.c ez-ipupdate.lsm example.conf example-pgpow.conf example-dhs.conf example-dyndns.conf example-ods.conf example-tzo.conf example-gnudip.conf example-easydns.conf example-justlinux.conf example-dyns.conf CHANGELOG mkbinary example-heipv6tb.conf
|
||||
|
||||
@@ -0,0 +1,32 @@
|
||||
Dont assume errno type
|
||||
|
||||
--- ez-ipupdate-3.0.11b7/cache_file.c.orig 2014-07-02 14:01:07.126029412 -0600
|
||||
+++ ez-ipupdate-3.0.11b7/cache_file.c 2014-07-02 14:08:27.422026332 -0600
|
||||
@@ -43,11 +43,11 @@
|
||||
#include <cache_file.h>
|
||||
|
||||
#if HAVE_STRERROR
|
||||
-extern int errno;
|
||||
+# include <errno.h>
|
||||
# define error_string strerror(errno)
|
||||
#elif HAVE_SYS_ERRLIST
|
||||
extern const char *const sys_errlist[];
|
||||
-extern int errno;
|
||||
+# include <errno.h>
|
||||
# define error_string (sys_errlist[errno])
|
||||
#else
|
||||
# define error_string "error message not found"
|
||||
@@ -63,11 +63,11 @@
|
||||
# define dprintf(x)
|
||||
#endif
|
||||
#if HAVE_STRERROR
|
||||
-extern int errno;
|
||||
+# include <errno.h>
|
||||
# define error_string strerror(errno)
|
||||
#elif HAVE_SYS_ERRLIST
|
||||
extern const char *const sys_errlist[];
|
||||
-extern int errno;
|
||||
+# include <errno.h>
|
||||
# define error_string (sys_errlist[errno])
|
||||
#else
|
||||
# define error_string "error message not found"
|
||||
@@ -0,0 +1,18 @@
|
||||
Dont assume errno type
|
||||
|
||||
--- ez-ipupdate-3.0.11b7/conf_file.c.orig 2014-07-02 14:01:19.174029328 -0600
|
||||
+++ ez-ipupdate-3.0.11b7/conf_file.c 2014-07-02 14:08:42.982026223 -0600
|
||||
@@ -38,11 +38,11 @@
|
||||
#include <conf_file.h>
|
||||
|
||||
#if HAVE_STRERROR
|
||||
-extern int errno;
|
||||
+# include <errno.h>
|
||||
# define error_string strerror(errno)
|
||||
#elif HAVE_SYS_ERRLIST
|
||||
extern const char *const sys_errlist[];
|
||||
-extern int errno;
|
||||
+# include <errno.h>
|
||||
# define error_string (sys_errlist[errno])
|
||||
#else
|
||||
# define error_string "error message not found"
|
||||
@@ -0,0 +1,13 @@
|
||||
Index: ez-ipupdate-3.0.11b7/ez-ipupdate.c
|
||||
===================================================================
|
||||
--- ez-ipupdate-3.0.11b7.orig/ez-ipupdate.c
|
||||
+++ ez-ipupdate-3.0.11b7/ez-ipupdate.c
|
||||
@@ -798,7 +798,7 @@ void show_message(char *fmt, ...)
|
||||
sprintf(buf, "message incomplete because your OS sucks: %s\n", fmt);
|
||||
#endif
|
||||
|
||||
- syslog(LOG_NOTICE, buf);
|
||||
+ syslog(LOG_NOTICE, "%s", buf);
|
||||
}
|
||||
else
|
||||
{
|
||||
Reference in New Issue
Block a user