rsh.c (50477) | rsh.c (56590) |
---|---|
1/*- 2 * Copyright (c) 1983, 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "From: @(#)rsh.c 8.3 (Berkeley) 4/6/94"; 43#endif 44static const char rcsid[] = | 1/*- 2 * Copyright (c) 1983, 1990, 1993, 1994 3 * The Regents of the University of California. All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 28 unchanged lines hidden (view full) --- 37 The Regents of the University of California. All rights reserved.\n"; 38#endif /* not lint */ 39 40#ifndef lint 41#if 0 42static char sccsid[] = "From: @(#)rsh.c 8.3 (Berkeley) 4/6/94"; 43#endif 44static const char rcsid[] = |
45 "$FreeBSD: head/usr.bin/rsh/rsh.c 50477 1999-08-28 01:08:13Z peter $"; | 45 "$FreeBSD: head/usr.bin/rsh/rsh.c 56590 2000-01-25 14:52:10Z shin $"; |
46#endif /* not lint */ 47 48#include <sys/param.h> 49#include <sys/signal.h> 50#include <sys/socket.h> 51#include <sys/ioctl.h> 52#include <sys/file.h> 53#include <sys/time.h> --- 210 unchanged lines hidden (view full) --- 264 if (errno == ENOENT) 265 warnx( 266 "warning, using standard rsh: can't provide Kerberos auth data"); 267 goto try_connect; 268 } 269 } else { 270 if (doencrypt) 271 errx(1, "the -x flag requires Kerberos authentication"); | 46#endif /* not lint */ 47 48#include <sys/param.h> 49#include <sys/signal.h> 50#include <sys/socket.h> 51#include <sys/ioctl.h> 52#include <sys/file.h> 53#include <sys/time.h> --- 210 unchanged lines hidden (view full) --- 264 if (errno == ENOENT) 265 warnx( 266 "warning, using standard rsh: can't provide Kerberos auth data"); 267 goto try_connect; 268 } 269 } else { 270 if (doencrypt) 271 errx(1, "the -x flag requires Kerberos authentication"); |
272 rem = rcmd(&host, sp->s_port, pw->pw_name, user, args, &rfd2); | 272 rem = rcmd_af(&host, sp->s_port, pw->pw_name, user, args, 273 &rfd2, PF_UNSPEC); |
273 } 274#else | 274 } 275#else |
275 rem = rcmd(&host, sp->s_port, pw->pw_name, user, args, &rfd2); | 276 rem = rcmd_af(&host, sp->s_port, pw->pw_name, user, args, &rfd2, 277 PF_UNSPEC); |
276#endif 277 278 if (rem < 0) 279 exit(1); 280 281 if (rfd2 < 0) 282 errx(1, "can't establish stderr"); 283 if (dflag) { --- 209 unchanged lines hidden --- | 278#endif 279 280 if (rem < 0) 281 exit(1); 282 283 if (rfd2 < 0) 284 errx(1, "can't establish stderr"); 285 if (dflag) { --- 209 unchanged lines hidden --- |