mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-12-27 05:21:08 +01: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
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=2248
@ -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 New Issue
Block a user