blob: 800d94849d98996113d31012d2d8e1a4e6f8e02f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
diff -urN ifplugd-0.26.orig/configure ifplugd-0.26/configure
--- ifplugd-0.26.orig/configure 2004-12-20 08:39:14.684706181 -0500
+++ ifplugd-0.26/configure 2004-12-20 08:39:50.184734260 -0500
@@ -3644,7 +3644,7 @@
# If using GCC specify some additional parameters
if test "x$GCC" = "xyes" ; then
- CFLAGS="$CFLAGS -pipe -W -Wall -pedantic"
+ CFLAGS="$CFLAGS -W -Wall"
cat >conftest.$ac_ext <<_ACEOF
int main() {}
diff -urN ifplugd-0.26.orig/src/ifplugd.c ifplugd-0.26/src/ifplugd.c
--- ifplugd-0.26.orig/src/ifplugd.c 2004-12-20 08:39:14.682706517 -0500
+++ ifplugd-0.26/src/ifplugd.c 2004-12-20 08:40:56.903506651 -0500
@@ -64,7 +64,7 @@
interface_do_message = 1;
char *interface = NULL;
-char *run = SYSCONFDIR"/ifplugd/ifplugd.action";
+char *run = SYSCONFDIR"/usr/sbin/ifplugd.action";
char *extra_arg = NULL;
int polltime = 1,
diff -urN ifplugd-0.26.orig/src/nlapi.c ifplugd-0.26/src/nlapi.c
--- ifplugd-0.26.orig/src/nlapi.c 2004-12-20 08:39:14.682706517 -0500
+++ ifplugd-0.26/src/nlapi.c 2004-12-20 08:39:50.185734092 -0500
@@ -86,7 +86,7 @@
for (; bytes > 0; p = NLMSG_NEXT(p, bytes)) {
struct callback_info *c;
- if (!NLMSG_OK(p, bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < p->nlmsg_len) {
+ if (!NLMSG_OK(p, (size_t) bytes) || (size_t) bytes < sizeof(struct nlmsghdr) || (size_t) bytes < (size_t) p->nlmsg_len) {
daemon_log(LOG_ERR, "NLAPI: Packet too small or truncated!\n");
return -1;
}
|