diff options
author | dinoex <dinoex@FreeBSD.org> | 2003-08-15 02:32:17 +0800 |
---|---|---|
committer | dinoex <dinoex@FreeBSD.org> | 2003-08-15 02:32:17 +0800 |
commit | 429aa38297c0b9638d8f41072ae2470f6ce32898 (patch) | |
tree | b50683c8ee370c1b51b217a25cc867a6f22ed611 /net-mgmt/wide-dhcp | |
parent | e3f44902f386d70dc88b33a958740c6dc7859552 (diff) | |
download | freebsd-ports-gnome-429aa38297c0b9638d8f41072ae2470f6ce32898.tar.gz freebsd-ports-gnome-429aa38297c0b9638d8f41072ae2470f6ce32898.tar.zst freebsd-ports-gnome-429aa38297c0b9638d8f41072ae2470f6ce32898.zip |
- Fixes restart problems with patch from qhwt@myrealbox.com
Diffstat (limited to 'net-mgmt/wide-dhcp')
-rw-r--r-- | net-mgmt/wide-dhcp/Makefile | 2 | ||||
-rw-r--r-- | net-mgmt/wide-dhcp/files/patch-database.c | 30 |
2 files changed, 31 insertions, 1 deletions
diff --git a/net-mgmt/wide-dhcp/Makefile b/net-mgmt/wide-dhcp/Makefile index a3c2dae0a79a..ffc045eadaff 100644 --- a/net-mgmt/wide-dhcp/Makefile +++ b/net-mgmt/wide-dhcp/Makefile @@ -8,7 +8,7 @@ PORTNAME= wide-dhcp PORTVERSION= 1.4.0.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= net MASTER_SITES= ftp://sh.wide.ad.jp/WIDE/free-ware/dhcp/ \ ftp://ftp.netlab.is.tsukuba.ac.jp/pub/network/wide-dhcp/ \ diff --git a/net-mgmt/wide-dhcp/files/patch-database.c b/net-mgmt/wide-dhcp/files/patch-database.c new file mode 100644 index 000000000000..8b4dcd732159 --- /dev/null +++ b/net-mgmt/wide-dhcp/files/patch-database.c @@ -0,0 +1,30 @@ +--- database.c.orig Fri Jan 1 22:35:33 1999 ++++ database.c Sun Aug 3 19:55:32 2003 +@@ -560,15 +560,15 @@ + char **cp; + struct in_addr *subnet; + { +- char *tmpstr; ++ char *tmpstr, *line; + struct in_addr *tmpaddr; + +- if ((tmpstr = get_string(cp)) == NULL) { ++ if ((line = get_string(cp)) == NULL) { + errno = 0; + syslog(LOG_WARNING, "Can't get strings"); + return(-1); + } +- ++ tmpstr = line; + if ((tmpaddr = get_ip(&tmpstr)) == NULL) { + errno = 0; + syslog(LOG_WARNING, "get_ip() error in read_subnet()"); +@@ -576,7 +576,7 @@ + } + + *subnet = *tmpaddr; +- free(tmpstr); ++ free(line); + free(tmpaddr); + + return(0); |