Displaying 20 results from an estimated 29 matches for "addarg".
Did you mean:
add_arg
2001 May 19
0
More scp changes
...uot;Executing: command %s\n", cmd);
+ }
/*
* Reserve two descriptors so that the real pipes won't get
* descriptors 0 and 1 because that will screw up dup2 below.
@@ -173,15 +178,24 @@
close(pin[0]);
close(pout[1]);
- args.list[0] = ssh_program;
- if (remuser != NULL)
- addargs(&args, "-l%s", remuser);
- addargs(&args, "%s", host);
- addargs(&args, "%s", cmd);
-
- execvp(ssh_program, args.list);
- perror(ssh_program);
- exit(1);
+ if (host) {
+ args.list[0] = ssh_program;
+ if (remuser != NULL)
+ addargs(&args, &...
2013 Jul 29
5
[Bug 2133] New: scp failes between two ends using password authentication
...for standard
remote to remote. Consequently, stdin is redirected to /dev/null and a
remote ssh can't ask for another password.
As a fix I'd propose to use the patch from RHEL:
--- a/scp.c
+++ b/scp.c
@@ -638,7 +638,10 @@ toremote(char *targ, int argc, char **argv)
addargs(&alist, "%s", ssh_program);
addargs(&alist, "-x");
addargs(&alist, "-oClearAllForwardings=yes");
- addargs(&alist, "-n");
+ if (isatty(fileno(stdin)))...
2004 Aug 31
1
[PATCH] supporting a remote scp path option in scp
...215,13 @@
int
main(int argc, char **argv)
{
- int ch, fflag, tflag, status;
+ int ch, fflag, tflag, status, rscpcmdlen;
double speed;
char *targ, *endp;
extern char *optarg;
extern int optind;
+ rscpcmdlen = 1;
args.list = NULL;
addargs(&args, "ssh"); /* overwritten with ssh_program */
addargs(&args, "-x");
@@ -225,7 +229,7 @@
addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q124...
2000 Dec 18
2
scp remote path specification
...ocal /full/path/to/ssh is appended below.
--- openssh/scp.c~ Sat Oct 28 05:19:58 2000
+++ openssh/scp.c Tue Nov 7 17:59:37 2000
@@ -245,7 +245,7 @@
char *argv[];
{
int ch, fflag, tflag;
- char *targ;
+ char *targ, *pathsep;
extern char *optarg;
extern int optind;
@@ -253,6 +253,19 @@
addargs("ssh"); /* overwritten with ssh_program */
addargs("-x");
addargs("-oFallBackToRsh no");
+
+ /* check explicit path for ssh binary, default is SSH_PROGRAM */
+ if ((argc > 0) &&
+ (argv[0] != NULL)) {
+ pathsep = strrchr(argv[0], '/');
+...
2002 Jan 27
5
[PATCH] Add scp -1 and -2 options to OpenSSH-3.0.2p1
.../scp.c Sun Oct 21 18:53:59 2001
+++ openssh-3.0.2p1J2/scp.c Sat Jan 19 15:26:34 2002
@@ -82,6 +82,7 @@
#include "pathnames.h"
#include "log.h"
#include "misc.h"
+#include "compat.h"
#ifdef HAVE___PROGNAME
extern char *__progname;
@@ -242,9 +243,15 @@
addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:")) != -1)
+ while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q1246S:o:F:")) != -1)
switch (ch) {
/* User-visible flags. */
+ case '1'...
2001 Feb 06
4
argv[0] => host feature considered harmful
OpenSSH still has this feature, SSH-1.2.27 no longer has it. Admittedly it
can be useful sometimes, even though I'd prefer this to be done using a
trivial shell wrapper, which would be the UNIX way of doing things.
Not being able to call OpenSSH's ssh by another name (say ``ssh1'') can get in
the way when having to maintain two versions of ssh in parallel because the
``ssh ->
2006 May 14
1
scp patch to delete source files after copy
...progressmeter is not desired. */
int showprogress = 1;
+ /* Delete the source after copying. */
+ int delete_source = 0;
+
/* This is the program to execute for the secured connection. ("ssh" or -S) */
char *ssh_program = _PATH_SSH_PROGRAM;
***************
*** 278,284 ****
addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
! while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:")) != -1)
switch (ch) {
/* User-visible flags. */
case '1':
--- 281,287 ----
addargs(&args, "-oClearAllForwardings y...
2003 May 08
5
[Bug 557] scp over ssh-relay insists in asking passphrase
http://bugzilla.mindrot.org/show_bug.cgi?id=557
Summary: scp over ssh-relay insists in asking passphrase
Product: Portable OpenSSH
Version: 3.4p1
Platform: ix86
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P3
Component: scp
AssignedTo: openssh-unix-dev at mindrot.org
ReportedBy:
2005 Feb 17
1
SFTP batch mode patch
...e developer
diff -ur openssh-3.9p1-orig\sftp.c openssh-3.9p1\sftp.c
--- openssh-3.9p1-orig\sftp.c Sat Jul 17 02:12:08 2004
+++ openssh-3.9p1\sftp.c Thu Oct 14 11:39:40 2004
@@ -1420,6 +1420,7 @@
fatal("%s (%s).", strerror(errno), optarg);
showprogress = 0;
batchmode = 1;
+ addargs(&args, "-obatchmode yes");
break;
case 'P':
sftp_direct = optarg;
diff -ur openssh-3.9p1-orig\sshconnect.c openssh-3.9p1\sshconnect.c
--- openssh-3.9p1-orig\sshconnect.c Mon Jun 21 22:56:02 2004
+++ openssh-3.9p1\sshconnect.c Thu Oct 14 09:02:32 2004
@@ -537,8 +537...
2011 Aug 17
1
openssh-unix-dev Digest, Vol 100, Issue 3
...arg);
> host = cleanhostname(thost);
> if (do_cmd(host, tuser, bp, &remin,
> &remout) < 0)
> @@ -664,7 +667,8 @@ tolocal(int argc, char **argv)
> addargs(&alist, "-r");
> if (pflag)
> addargs(&alist, "-p");
> - addargs(&alist, "--");
> + if (*(argv[i]) == '-' || *(argv[argc-1]) == '-'...
2002 Jan 26
7
[PATCH] Added NoDelay config option and nodelay subsystem option
...uot;subsystem: exec() %s", cmd);
s->is_subsystem = 1;
do_exec(s, cmd);
diff -ru openssh-3.0.2p1.orig/sftp.c openssh-3.0.2p1.cfgnodelay/sftp.c
--- openssh-3.0.2p1.orig/sftp.c Thu Sep 20 02:57:56 2001
+++ openssh-3.0.2p1.cfgnodelay/sftp.c Sat Jan 26 19:47:36 2002
@@ -119,6 +119,7 @@
addargs(&args, "-oForwardX11 no");
addargs(&args, "-oForwardAgent no");
addargs(&args, "-oClearAllForwardings yes");
+ addargs(&args, "-oNoDelay yes");
ll = SYSLOG_LEVEL_INFO;
infile = stdin; /* Read from STDIN unless changed by -b */
diff...
2010 Nov 19
3
File Offsets for SCP (patch)
...ot;rcp -r -p -d\0" */
@@ -324,6 +325,9 @@ main(int argc, char **argv)
extern char *optarg;
extern int optind;
+ fd_inset = 0;
+ fd_offset = 0;
+
/* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */
sanitise_stdfd();
@@ -344,7 +348,7 @@ main(int argc, char **argv)
addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:")) != -1)
+ while ((ch = getopt(argc, argv, "dfl:prtvBCc:i:P:q1246S:o:F:A:Z:")) != -1)
switch (ch) {
/* User-visible flags. */
ca...
2002 Jul 13
0
[PATCH]: scp program improved
...hold "rcp -r -p -d\0" */
@@ -223,7 +246,10 @@
char *targ;
extern char *optarg;
extern int optind;
-
+ int factor, i; /* For rate limit */
+ const char factors[] = "kMMGGG";
+ char *c;
+
__progname = get_progname(argv[0]);
args.list = NULL;
@@ -233,7 +259,7 @@
addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q1246S:o:F:")) != -1)
+ while ((ch = getopt(argc, argv, "adfprtvBCc:i:P:q1246S:o:F:R:")) != -1)
switch (ch) {
/* User-visible flags. */
case '1...
2019 Jan 19
2
Status of SCP vulnerability
Hello,
I would like to request an update of the progress regarding fixes for the recently disclosed SCP vulnerability (CVE-2018-20685, CVE-2019-6111, CVE-2019-6109, CVE-2019-6110)
It has been stated that CVE-2018-20685 has been patched in november but there are currently no information available on the progress of patches regarding the other CVEs.
Will there be a patched release any time soon?
2002 Feb 06
2
SFTP Status Bar..
...tart = NULL;
+ statbytes = 0;
+ }
}
mysig_t
Only in openssh: misc.c.orig
diff -ur openssh-3.0.2p1/misc.h openssh/misc.h
--- openssh-3.0.2p1/misc.h Wed Jul 4 12:25:55 2001
+++ openssh/misc.h Wed Feb 6 13:02:33 2002
@@ -29,7 +29,11 @@
int num;
int nalloc;
};
+
void addargs(arglist *, char *, ...) __attribute__((format(printf, 2, 3)));
+void progressmeter(off_t statbytes, off_t totalbytes, char *curfile);
+
+#define PROGRESSTIME 1 /* alarm() interval for updating progress meter */
/* wrapper for signal interface */
typedef void (*mysig_t)(int);
diff -ur open...
2001 Jul 22
1
[patch] add -1 and -2 options to scp
Hi,
Several people have asked that scp support the -1 and -2 options, so I
wrote this patch.
Cheers,
Matthew
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: scp.diff
Url: http://lists.mindrot.org/pipermail/openssh-unix-dev/attachments/20010722/7e096fab/attachment.ksh
-------------- next part --------------
--
"At least you know
2001 Sep 08
1
force SSH1 and SSH2
...'m not subscribed...
--
---------------------------------
pozdr. Pawe? Go?aszewski
---------------------------------
R.I.P. - rest in pieces ...
-------------- next part --------------
--- ./scp.c.org Sat Sep 8 23:37:22 2001
+++ ./scp.c Sun Sep 9 00:07:36 2001
@@ -244,9 +244,11 @@
addargs("-oFallBackToRsh no");
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:")) != -1)
+ while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q1246S:o:")) != -1)
switch (ch) {
/* User-visible flags. */
+ case '1':
+ case '2'...
2001 Sep 27
0
[PATCH] scp fixes
...wards compatibility and
d) I don't accept any slippery slope arguments.
Secondly, I check for and ignore filenames with \n in the filename,
since these break the rcp/scp protocol.
Cheers,
Matthew
--- scp.c.orig Thu Sep 27 21:32:32 2001
+++ scp.c Thu Sep 27 21:41:06 2001
@@ -242,9 +242,11 @@
addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:")) !=
-1)
+ while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q1246S:o:F:"))
!= -1)
switch (ch) {
/* User-visible flags. */
+ case...
2002 Sep 10
1
[PATCH] Let scp accept options -1 and -2
...- next part --------------
? confdefs.h
Index: scp.c
===================================================================
RCS file: /cvs/openssh/scp.c,v
retrieving revision 1.97
diff -u -r1.97 scp.c
--- scp.c 21 Jun 2002 00:41:52 -0000 1.97
+++ scp.c 10 Sep 2002 17:37:49 -0000
@@ -233,9 +241,11 @@
addargs(&args, "-oClearAllForwardings yes");
fflag = tflag = 0;
- while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:")) != -1)
+ while ((ch = getopt(argc, argv, "dfprtvBCc:i:P:q46S:o:F:12")) != -1)
switch (ch) {
/* User-visible flags. */
+ case '1'...
2003 Nov 07
2
BUG: scp -q isn't quiet
If I scp from/to a server that has a banner using scp -q, it still
shows the banner. If I ssh -q to the same server, the banner is
skipped. scp -o "LogLevel quiet" does the trick, but is excessively
cumbersome.
- Morty