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
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",
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);
23 syslog(LOG_ERR, "Can't create AF_UNIX socket (%m) - exiting");
26 for (fd = 0; fd < FD_SETSIZE; fd++) {
27 if (FD_ISSET(fd, &readfds)) {
31 - fd = accept(listenfd, (struct sockaddr *)&unxs, &len);
39 i = read(fd, buf, 1024);