mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Add -DBSD4.2 and -DBSDINETD so uucpd makes sense. Further correct a
warning at compil time. This actually makes uucpd at tcp port 540 work, so slippers can poll over tcp. Reviewed by: Submitted by: guido
This commit is contained in:
parent
6f1537dd90
commit
6c27ceb40e
2 changed files with 3 additions and 3 deletions
|
|
@ -4,5 +4,5 @@ PROG= uucpd
|
|||
NOMAN= noman
|
||||
LDADD= -lcrypt
|
||||
DPADD= ${LIBCRYPT}
|
||||
|
||||
CFLAGS+= -DBSDINETD -DBSD42
|
||||
.include <bsd.prog.mk>
|
||||
|
|
|
|||
|
|
@ -95,7 +95,7 @@ char **argv;
|
|||
close(1); close(2);
|
||||
dup(0); dup(0);
|
||||
hisaddrlen = sizeof (hisctladdr);
|
||||
if (getpeername(0, &hisctladdr, &hisaddrlen) < 0) {
|
||||
if (getpeername(0, (struct sockaddr *)&hisctladdr, &hisaddrlen) < 0) {
|
||||
fprintf(stderr, "%s: ", argv[0]);
|
||||
perror("getpeername");
|
||||
_exit(1);
|
||||
|
|
@ -201,7 +201,7 @@ struct sockaddr_in *sinp;
|
|||
chdir(pw->pw_dir);
|
||||
setuid(pw->pw_uid);
|
||||
#ifdef BSD4_2
|
||||
execl(UUCICO, "uucico", (char *)0);
|
||||
execl(_PATH_UUCICO, "uucico", (char *)0);
|
||||
#endif BSD4_2
|
||||
perror("uucico server: execl");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue