]> git.pld-linux.org Git - packages/bind.git/blame - utils-holelogd-linux.patch
- fixed chown syntax
[packages/bind.git] / utils-holelogd-linux.patch
CommitLineData
f1eb64db
JR
1--- bind-chroot-8.2.2_P5/utils-1.0/holelogd.c.orig Sun Sep 15 22:39:42 1996
2+++ bind-chroot-8.2.2_P5/utils-1.0/holelogd.c Sun Jan 9 18:26:33 2000
3@@ -64,10 +64,10 @@
4 (void)unlink(holename);
5 unxls.sun_family = AF_UNIX;
6 (void) strncpy(unxls.sun_path, holename, sizeof unxls.sun_path);
7- listenfd = socket(AF_UNIX, SOCK_STREAM, 0);
8+ listenfd = socket(AF_UNIX, SOCK_DGRAM, 0);
9 if (listenfd < 0 || bind(listenfd, (struct sockaddr *) &unxls,
10 sizeof(unxls.sun_family)+strlen(unxls.sun_path)) < 0 ||
11- chmod(holename, 0666) < 0 || listen(listenfd, 5) < 0) {
12+ chmod(holename, 0666) < 0) {
13 syslog(LOG_ERR, "Can't create AF_UNIX listen socket %s (%m) - exiting",
14 holename);
15 exit(1);
16@@ -77,7 +77,7 @@
17
18 logaddr.sa_family = AF_UNIX;
19 (void) strncpy(logaddr.sa_data, logname, sizeof(logaddr.sa_data));
20- logfd = socket(AF_UNIX, SOCK_STREAM, 0);
21+ logfd = socket(AF_UNIX, SOCK_DGRAM, 0);
22 if (logfd < 0) {
23 syslog(LOG_ERR, "Can't create AF_UNIX socket (%m) - exiting");
24 exit(1);
25@@ -118,14 +118,6 @@
26 for (fd = 0; fd < FD_SETSIZE; fd++) {
27 if (FD_ISSET(fd, &readfds)) {
28 if (fd == listenfd) {
29- int len;
30- len = sizeof(unxs);
31- fd = accept(listenfd, (struct sockaddr *)&unxs, &len);
32- if (fd >= 0) {
33- FD_SET(fd, &cfds);
34- }
35- }
36- else {
37 int i;
38 char buf[1024];
39 i = read(fd, buf, 1024);
This page took 0.09914 seconds and 4 git commands to generate.