search for: verbose_mode

Displaying 18 results from an estimated 18 matches for "verbose_mode".

2004 Aug 31
1
[PATCH] supporting a remote scp path option in scp
...scp_remote_program = xstrdup(optarg); break; case 'S': ssh_program = xstrdup(optarg); @@ -265,6 +274,7 @@ case 'v': addargs(&args, "-v"); verbose_mode = 1; + rscpcmdlen += 3; break; case 'q': addargs(&args, "-q"); @@ -274,6 +284,7 @@ /* Server options. */ case 'd': targetshoul...
2000 Aug 12
0
[PATCH] scp -S support
...n(src) + (tuser ? strlen(tuser) : 0) + strlen(thost) + strlen(targ) + CMDNEEDS + 32; bp = xmalloc(len); @@ -402,7 +408,7 @@ continue; (void) sprintf(bp, "%s%s -x -o'FallBackToRsh no' -n -l %s %s %s %s '%s%s%s:%s'", - SSH_PROGRAM, verbose_mode ? " -v" : "", + ssh_program, verbose_mode ? " -v" : "", suser, host, cmd, src, tuser ? tuser : "", tuser ? "@" : "", thost, targ); @@ -410,7 +416,7 @@ host = cleanhostname(ar...
2006 May 14
1
scp patch to delete source files after copy
...{ /* User-visible flags. */ case '1': *************** *** 315,320 **** --- 318,326 ---- case 'S': ssh_program = xstrdup(optarg); break; + case 'u': + delete_source = 1; + break; case 'v': addargs(&args, "-v"); verbose_mode = 1; *************** *** 373,381 **** 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", verbose_mode ? " -v" : "", iamrecursive ? " -...
2000 Oct 11
2
scp -L option
...hport=1; + break; /* Server options. */ case 'd': *************** *** 420,435 **** else if (!okname(suser)) continue; (void) sprintf(bp, ! "%s%s -x -o'FallBackToRsh no' -n -l %s %s %s %s '%s%s%s:%s'", ssh_program, verbose_mode ? " -v" : "", suser, host, cmd, src, tuser ? tuser : "", tuser ? "@" : "", thost, targ); } else { host = cleanhostname(argv[i]); (void) sprintf(bp, ! "exec %s%s -x -o'FallBackToRsh n...
2001 Oct 16
6
program-prefix does not work
...flags. */ case '4': *************** *** 271,276 **** --- 272,280 ---- case 'S': ssh_program = xstrdup(optarg); break; + case 's': + scp_program = xstrdup(optarg); + break; case 'v': addargs(&args, "-v"); verbose_mode = 1; *************** *** 327,343 **** remin = remout = -1; /* Command to be executed on remote system using "ssh". */ ! (void) snprintf(cmd, sizeof cmd, "scp%s%s%s%s", verbose_mode ? " -v" : "", iamrecursive ? " -r" : &quot...
2015 Mar 03
2
openssh-SNAP-20150304 issues
...return; \ break; \ default: \ abort(); \ } \ } while (0) extern char *__progname; static int verbose_mode = 0; static int quiet_mode = 0; static char *active_test_name = NULL; static u_int test_number = 0; static test_onerror_func_t *test_onerror = NULL; static void *onerror_ctx = NULL; static const char *data_dir = NULL; static char subtest_info[512]; int main(int argc, char **argv) { int ch;...
2002 Jul 13
0
[PATCH]: scp program improved
...y timestamp checks currently. + * + * 2002 Miika Pekkarinen <miika at ihme.org> + */ +/* * Copyright (c) 1999 Theo de Raadt. All rights reserved. * Copyright (c) 1999 Aaron Campbell. All rights reserved. * @@ -119,6 +138,9 @@ /* This is set to non-zero to enable verbose mode. */ int verbose_mode = 0; +/* This disables resume mode for default */ +int resume_mode = 0; + /* This is set to zero if the progressmeter is not desired. */ int showprogress = 1; @@ -202,6 +224,7 @@ uid_t userid; int errs, remin, remout; int pflag, iamremote, iamrecursive, targetshouldbedirectory; +off_t rate_l...
2001 May 19
0
More scp changes
.... This + * given host. If host is NULL, execute the command locally without using + * ssh. This returns < 0 if execution fails, and >= 0 otherwise. This * assigns the input and output file descriptors on success. */ @@ -143,10 +144,14 @@ { int pin[2], pout[2], reserved[2]; - if (verbose_mode) - fprintf(stderr, "Executing: program %s host %s, user %s, command %s\n", - ssh_program, host, remuser ? remuser : "(unspecified)", cmd); - + if (verbose_mode) { + if (host) { + fprintf(stderr, "Executing: program %s host %s, user %s, command %s\n", + s...
2000 Jul 07
0
Patch to add scp -L option
...else if (!okname(suser)) continue; (void) sprintf(bp, - "%s%s -x -o'FallBackToRsh no' -n -l %s %s %s %s '%s%s%s:%s'", + "%s%s%s -x -o'FallBackToRsh no' -n -l %s %s %s %s '%s%s%s:%s'", SSH_PROGRAM, verbose_mode ? " -v" : "", + nonprivilaged_port ? " -P" : "", suser, host, cmd, src, tuser ? tuser : "", tuser ? "@" : "", thost, targ); } else { host = cleanhostname(argv[i]); (...
2000 Dec 12
1
scp and filenames with weird characters
...continue; sprintf(bp, - "%s%s -x -o'FallBackToRsh no' -n -l %s %s %s %s '%s%s%s:%s'", + "%s%s -x -o'FallBackToRsh no' -n -l \"%s\" \"%s\" \"%s\" \"%s\" '%s%s%s:%s'", ssh_program, verbose_mode ? " -v" : "", suser, host, cmd, src, tuser ? tuser : "", tuser ? "@" : "", @@ -406,7 +406,7 @@ } else { host = cleanhostname(argv[i]); sprintf(bp, - "exec %s%s -x -o'FallBackToRsh no' -n %s %s %s &...
2000 Jul 20
3
scp over 2 hosts
Hi folks, I have the that I must copy some through a Plag-Gateway of a Firewall over 2 host. A secure connection via "ssh - t hosta ssh -t hostb" works fine, but does this work with scp too? Icould not realize it either with scp (1.2.27 of ssh.com) or scp from openssh. Do you have any ideas? Thanks Stephan
2015 May 22
5
[Bug 2404] New: scp skips file/directory on permissions error
https://bugzilla.mindrot.org/show_bug.cgi?id=2404 Bug ID: 2404 Summary: scp skips file/directory on permissions error Product: Portable OpenSSH Version: 6.7p1 Hardware: All OS: All Status: NEW Severity: major Priority: P5 Component: scp Assignee: unassigned-bugs at mindrot.org
2001 Feb 08
1
username check in scp
...ser = NULL; @@ -395,8 +392,6 @@ suser = argv[i]; if (*suser == '\0') suser = pwd->pw_name; - else if (!okname(suser)) - continue; sprintf(bp, "%s%s -x -o'FallBackToRsh no' -n -l %s %s %s %s '%s%s%s:%s'", ssh_program, verbose_mode ? " -v" : "", @@ -468,8 +463,6 @@ suser = argv[i]; if (*suser == '\0') suser = pwd->pw_name; - else if (!okname(suser)) - continue; } host = cleanhostname(host); len = strlen(src) + CMDNEEDS + 20; @@ -1017,28 +1010,6 @@ } run_err("%...
2006 Mar 17
3
[Bug 1173] scp reports lost connection for very large files
...: C0644 1845525336 onedrain_opsncc_pg_dump.out Further investigation points to scp.c line 607 snprintf(buf, sizeof buf, "C%04o %lld %s\n", (u_int) (stb.st_mode & FILEMODEMASK), (long long)stb.st_size, last); if (verbose_mode) { fprintf(stderr, "Sending file modes: %s", buf); } Value in stb.st_size is correct (10435459928), however after snprintf() variable buf holds incorrect value (1845525336). Now, snprintf() that gets used is the one in openbsd-compat/bsd-snprintf....
2000 Aug 24
0
patch for a few things
...number of bytes in a char. */ #undef SIZEOF_CHAR *** ./scp.c.orig Tue Aug 22 20:46:24 2000 --- ./scp.c Thu Aug 24 15:20:35 2000 *************** *** 91,104 **** /* This is set to non-zero if IPv6 is desired. */ int IPv6 = 0; /* This is set to non-zero to enable verbose mode. */ int verbose_mode = 0; /* This is set to non-zero if compression is desired. */ int compress_flag = 0; ! /* This is set to zero if the progressmeter is not desired. */ int showprogress = 1; /* This is set to non-zero if running in batch mode (that is, password and passphrase queries are not all...
2001 May 12
4
Erase the source file open; specify a tempfile name option
...@@ -319,8 +328,11 @@ remin = remout = -1; /* Command to be executed on remote system using "ssh". */ - (void) snprintf(cmd, sizeof cmd, "scp%s%s%s%s", + cmdlen = strlen(tmpfn) + 64; + cmd = xmalloc(cmdlen); + (void) snprintf(cmd, cmdlen, "scp%s%s%s%s%s%s%s", verbose_mode ? " -v" : "", + eraseflag ? " -E" : "", *tmpfn ? " -T" : "", tmpfn, iamrecursive ? " -r" : "", pflag ? " -p" : "", targetshouldbedirectory ? " -d" : ""); @@ -370,...
2001 Oct 07
3
socks and misc patch to 2.9.9p2
...ks.h" +#endif + #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> diff -u openssh-2.9.9p2.old/scp.c openssh-2.9.9p2/scp.c --- openssh-2.9.9p2.old/scp.c Wed Sep 19 17:57:56 2001 +++ openssh-2.9.9p2/scp.c Sat Oct 6 17:42:08 2001 @@ -128,7 +128,11 @@ int verbose_mode = 0; /* This is set to zero if the progressmeter is not desired. */ +#if defined(DISABLE_SCP_STATISTICS) +int showprogress = 0; +#else int showprogress = 1; +#endif /* This is the program to execute for the secured connection. ("ssh" or -S) */ char *ssh_program = _PATH_SSH_PROGRAM...
2002 May 11
4
socks5 support
...ks.h" +#endif + #include <sys/types.h> #include <sys/socket.h> #include <sys/ioctl.h> diff -u openssh-2.9.9p2.old/scp.c openssh-2.9.9p2/scp.c --- openssh-2.9.9p2.old/scp.c Wed Sep 19 17:57:56 2001 +++ openssh-2.9.9p2/scp.c Sat Oct 6 17:42:08 2001 @@ -128,7 +128,11 @@ int verbose_mode = 0; /* This is set to zero if the progressmeter is not desired. */ +#if defined(DISABLE_SCP_STATISTICS) +int showprogress = 0; +#else int showprogress = 1; +#endif /* This is the program to execute for the secured connection. ("ssh" or -S) */ char *ssh_program = _PATH_SSH_PROGRAM...