[PATCH] compat: replace AF_LOCAL with AF_UNIX

There's no AF_LOCAL in POSIX
This commit is contained in:
Edgar Toernig
2005-04-30 09:51:03 -07:00
committed by Linus Torvalds
parent b682969367
commit ae200ee594
2 changed files with 5 additions and 5 deletions

2
rsh.c
View File

@ -48,7 +48,7 @@ int setup_connection(int *fd_in, int *fd_out, char *remote_prog,
}
}
strcpy(posn, " -");
if (socketpair(AF_LOCAL, SOCK_STREAM, 0, sv)) {
if (socketpair(AF_UNIX, SOCK_STREAM, 0, sv)) {
return error("Couldn't create socket");
}
if (!fork()) {