Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!linus!decvax!harpo!seismo!hao!hplabs!sri-unix!rws@mit-bold From: rws%mit-bold@sri-unix.UUCP Newsgroups: net.unix-wizards Subject: 3rd party copies don't work in 4.2 rcp Message-ID: <15095@sri-arpa.UUCP> Date: Mon, 2-Jan-84 16:11:00 EST Article-I.D.: sri-arpa.15095 Posted: Mon Jan 2 16:11:00 1984 Date-Received: Sat, 7-Jan-84 02:14:52 EST Lines: 36 From: Robert W. Scheifler Description: rcp (version 4.8) doesn't work for 3rd party copies. In forking rsh it uses -L instead of -l, and uses the wrong user name at the destination. Even with this fix, I don't think this form of copy has the right semantics in terms of who must be equivalent to whom. I would have thought that if I could do rcp host1.name1:foo /tmp/foo rcp /tmp/foo host2.name2:foo then I should be able to do rcp host1.name1:foo host2.name2:foo but that isn't the case. The current implementation requires that name1@host1 (not me) be in the .rhosts of name2@host2. Repeat-By: Try doing one. Fix: Here is a 'diff old new' 105c105 < (void) sprintf(buf, "rsh %s -L %s -n %s %s '%s:%s'", --- > (void) sprintf(buf, "rsh %s -l %s -n %s %s '%s.%s:%s'", 107c107 < src, argv[argc - 1], targ); --- > src, argv[argc - 1], tuser, targ); 109c109 < (void) sprintf(buf, "rsh %s -n %s %s '%s:%s'", --- > (void) sprintf(buf, "rsh %s -n %s %s '%s.%s:%s'", 111c111 < src, argv[argc - 1], targ); --- > src, argv[argc - 1], tuser, targ);