From a03d725528ebbaeca1058ea6c480436008628517 Mon Sep 17 00:00:00 2001 From: Gernot Tenchio Date: Tue, 11 Jan 2011 14:29:12 +0100 Subject: [PATCH] dhcprelay: fix typo in openlog() --- network/dhcprelay/dhcprelay-1.2-logname.patch | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 network/dhcprelay/dhcprelay-1.2-logname.patch diff --git a/network/dhcprelay/dhcprelay-1.2-logname.patch b/network/dhcprelay/dhcprelay-1.2-logname.patch new file mode 100644 index 000000000..ad49e0235 --- /dev/null +++ b/network/dhcprelay/dhcprelay-1.2-logname.patch @@ -0,0 +1,21 @@ +diff -up dhcprelay-1.2/dhcprelay.c.typo dhcprelay-1.2/dhcprelay.c +--- dhcprelay-1.2/dhcprelay.c.typo 2011-01-11 13:43:40.516241697 +0100 ++++ dhcprelay-1.2/dhcprelay.c 2011-01-11 13:45:19.733117871 +0100 +@@ -88,7 +88,7 @@ int main(int argc,char **argv) { + } + if ((p=fork())!=0) { + FILE *f; +- openlog("dchprelay",LOG_NDELAY|LOG_PID,LOG_DAEMON); ++ openlog("dhcprelay",LOG_NDELAY|LOG_PID,LOG_DAEMON); + syslog(LOG_NOTICE,"dhcprelay started as process %d",p); + if ((f=fopen("/var/run/dhcprelay.pid","w"))!=NULL) { + fprintf(f,"%d\n",p); +@@ -110,7 +110,7 @@ int main(int argc,char **argv) { + bootpc_port=servent->s_port; + } + +- openlog("dchprelay",LOG_NDELAY|LOG_PID,LOG_DAEMON); ++ openlog("dhcprelay",LOG_NDELAY|LOG_PID,LOG_DAEMON); + + if (argc==1) { + printf(