| 42 + @for mod in $(SQL_MODULES) NOOP; do \ |
42 + @for mod in $(SQL_MODULES) NOOP; do \ |
| 43 echo "Making $(WHAT_TO_MAKE) in $$mod..."; \ |
43 echo "Making $(WHAT_TO_MAKE) in $$mod..."; \ |
| 44 - $(MAKE) $(MFLAGS) -C $$mod $(WHAT_TO_MAKE) || exit $$?; \ |
44 - $(MAKE) $(MFLAGS) -C $$mod $(WHAT_TO_MAKE) || exit $$?; \ |
| 45 + [ -d $$mod ] || exit 0; $(MAKE) $(MFLAGS) -C $$mod $(WHAT_TO_MAKE) || exit $$?; \ |
45 + [ -d $$mod ] || exit 0; $(MAKE) $(MFLAGS) -C $$mod $(WHAT_TO_MAKE) || exit $$?; \ |
| 46 done |
46 done |
| |
47 Index: src/main/command.c |
| |
48 --- src/main/command.c.orig 2009-01-08 19:39:52.565611820 +0100 |
| |
49 +++ src/main/command.c 2009-01-08 19:40:18.333372190 +0100 |
| |
50 @@ -148,7 +148,7 @@ |
| |
51 salocal.sun_family = AF_UNIX; |
| |
52 memcpy(salocal.sun_path, path, len + 1); /* SUN_LEN does strlen */ |
| |
53 |
| |
54 - socklen = SUN_LEN(&salocal); |
| |
55 + socklen = sizeof(salocal) - sizeof(salocal.sun_path) + strlen(salocal.sun_path); |
| |
56 |
| |
57 /* |
| |
58 * Check the path. |
| |
59 Index: src/main/radmin.c |
| |
60 --- src/main/radmin.c.orig 2009-01-08 19:36:15.333428110 +0100 |
| |
61 +++ src/main/radmin.c 2009-01-08 19:39:15.131776575 +0100 |
| |
62 @@ -112,7 +112,7 @@ |
| |
63 saremote.sun_family = AF_UNIX; |
| |
64 memcpy(saremote.sun_path, path, len + 1); /* SUN_LEN does strlen */ |
| |
65 |
| |
66 - socklen = SUN_LEN(&saremote); |
| |
67 + socklen = sizeof(saremote) - sizeof(saremote.sun_path) + strlen(saremote.sun_path); |
| |
68 |
| |
69 if (connect(sockfd, (struct sockaddr *)&saremote, socklen) < 0) { |
| |
70 fprintf(stderr, "%s: Failed connecting to %s: %s\n", |