diff options
author | deraadt@openbsd.org <deraadt@openbsd.org> | 2021-10-15 14:46:46 +0000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2021-10-22 22:01:46 +1100 |
commit | 052a9d8494175e24312daa6c132665e58c17fe6e (patch) | |
tree | 4ee0eb16c0a8b452c48e741c9fc54675c8e52868 /scp.c | |
parent | a07664646bf6d293f5bbd45a5de54f3c36bb85da (diff) | |
download | openssh-git-052a9d8494175e24312daa6c132665e58c17fe6e.tar.gz |
upstream: switch scp(1) back to sftp protocol.
openbsd 7.0 release shipped with the (hopefully last) scp that uses RCP
protocol for copying. Let's get back to testing the SFTP protocol.
OpenBSD-Commit-ID: 9eaa35d95fd547b78b0a043b3f518e135f151f30
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: scp.c,v 1.239 2021/09/20 06:53:56 djm Exp $ */ +/* $OpenBSD: scp.c,v 1.240 2021/10/15 14:46:46 deraadt Exp $ */ /* * scp - secure remote copy. This is basically patched BSD rcp which * uses ssh to do the data transfer (instead of using rcmd). @@ -448,7 +448,7 @@ main(int argc, char **argv) const char *errstr; extern char *optarg; extern int optind; - enum scp_mode_e mode = MODE_SCP; + enum scp_mode_e mode = MODE_SFTP; char *sftp_direct = NULL; /* Ensure that fds 0, 1 and 2 are open or directed to /dev/null */ |