search for: lostconn

Displaying 8 results from an estimated 8 matches for "lostconn".

2006 May 14
1
scp patch to delete source files after copy
...void) snprintf(cmd, sizeof cmd, "scp%s%s%s%s", verbose_mode ? " -v" : "", iamrecursive ? " -r" : "", pflag ? " -p" : "", targetshouldbedirectory ? " -d" : ""); (void) signal(SIGPIPE, lostconn); --- 379,388 ---- remin = remout = -1; do_cmd_pid = -1; /* Command to be executed on remote system using "ssh". */ ! (void) snprintf(cmd, sizeof cmd, "scp%s%s%s%s%s", verbose_mode ? " -v" : "", iamrecursive ? " -r" : "&...
2009 Apr 17
0
SCP client prints out "lost connection" error message occasionally
...rrying out a recursive transfer from S to L by means of the scp command issued in L (S does not support sftp) the client occasionally prints out a "lost connection" error message at the very end of the transfer. After some debugging I found out that the error message (as printed out from lostconn() in scp.c) occurs because the ssh process in L, spawned by the scp command, has already terminated, but the scp command still wants to write something to the pipe it uses to communicate with this ssh process. I have observed a few things of interest here. First, the traces for the SSH server in S...
2001 Feb 08
1
username check in scp
...you. Ciao Christian -- When it is incorrect, it is, at least *authoritatively* incorrect. -- Hitchiker's Guide To The Galaxy -------------- next part -------------- --- scp.c.orig Thu Feb 8 21:20:50 2001 +++ scp.c Thu Feb 8 21:21:21 2001 @@ -207,7 +207,6 @@ char *colon(char *); void lostconn(int); void nospace(void); -int okname(char *); void run_err(const char *,...); void verifydir(char *); @@ -371,8 +370,6 @@ tuser = argv[argc - 1]; if (*tuser == '\0') tuser = NULL; - else if (!okname(tuser)) - exit(1); } else { thost = argv[argc - 1]; tuser = NULL;...
2001 Aug 29
1
bug in scp (OpenSSH)
Hi, using both OpenSSH_2.5.1p1 (compiled myself) and openssh-2.9p1-23.i386.rpm from ftp.suse.com 7.2_update I get the following "leak" : using `scp' I tried to copy a file from a local floppy disk to a remote system, but the disk had an read error and scp didn't get any real data from floppy: turtle koenig > scp /media/floppy/file.c harald:file.c
2016 Jan 19
6
FWD: [patch] scp + UTF-8
...t; #include <errno.h> #include <fcntl.h> +#include <locale.h> #include <pwd.h> #include <signal.h> #include <stdarg.h> @@ -501,6 +502,8 @@ main(int argc, char **argv) targetshouldbedirectory ? " -d" : ""); (void) signal(SIGPIPE, lostconn); + + (void) setlocale(LC_CTYPE, ""); if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ toremote(targ, argc, argv); ----- End forwarded message -----
2001 Oct 16
6
program-prefix does not work
...oid) snprintf(cmd, sizeof cmd, "scp%s%s%s%s", verbose_mode ? " -v" : "", iamrecursive ? " -r" : "", pflag ? " -p" : "", ! targetshouldbedirectory ? " -d" : ""); (void) signal(SIGPIPE, lostconn); if ((targ = colon(argv[argc - 1]))) /* Dest is remote host. */ ! toremote(targ, argc, argv); else { ! tolocal(argc, argv); /* Dest is local host. */ if (targetshouldbedirectory) verifydir(argv[argc - 1]); } --- 331,349 ---- remin = remout = -1; /* Command to b...
2002 Jul 13
0
[PATCH]: scp program improved
..." : "", pflag ? " -p" : "", + targetshouldbedirectory ? " -d" : "", + resume_mode ? " -a" : "", rate_limit); + if (!rate_limit) + *(strstr(cmd, " -R")) = '\0'; (void) signal(SIGPIPE, lostconn); @@ -482,14 +523,18 @@ char *argv[]; { struct stat stb; + struct timeval wait, lastupdate, now; static BUF buffer; BUF *bp; - off_t i, amt, result; + off_t i, amt, result, bcounter; int fd, haderr, indx; - char *last, *name, buf[2048]; + char *last, *name, buf[2048], c; int le...
2010 Feb 27
24
Call for testing: OpenSSH-5.4
Hi, OpenSSH 5.4 is almost ready for release, so we would appreciate testing on as many platforms and systems as possible. This is a big release, with a number of major new features and many bug fixes. Snapshot releases for portable OpenSSH are available from http://www.mindrot.org/openssh_snap/ The OpenBSD version is available in CVS HEAD: http://www.openbsd.org/anoncvs.html Portable OpenSSH