X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;ds=inline;f=rsh.c;h=2a52e598164b565fcb06e452d6fb9866344e4c12;hb=ed4eeaf203d0f293bd5ffc2a0ad8711f052db1f3;hp=4d6a90bf6c1b290975fb2ac22f25979be56cb476;hpb=6eb7ed5403b7d57d5ed7e30d0cd0b312888ee95c;p=git.git diff --git a/rsh.c b/rsh.c index 4d6a90bf..2a52e598 100644 --- a/rsh.c +++ b/rsh.c @@ -1,6 +1,7 @@ #include "rsh.h" #include +#include #include #include "cache.h" @@ -47,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()) {