diff options
author | Damien Miller <djm@mindrot.org> | 2000-07-15 14:14:16 +1000 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2000-07-15 14:14:16 +1000 |
commit | be484b5d9889ca636fecdf1f6b73ddfbe4cce3c9 (patch) | |
tree | 8b1023f666bebd274c08fe579a61c70a8a66f283 /scp.c | |
parent | 055dc369837e1bde0f84a7ecfe669e4e44f10db9 (diff) |
- (djm) OpenBSD CVS updates
- provos@cvs.openbsd.org 2000/07/13 16:53:22
[aux.c readconf.c servconf.c ssh.h]
allow multiple whitespace but only one '=' between tokens, bug report from
Ralf S. Engelschall <rse@engelschall.com> but different fix. okay deraadt@
- provos@cvs.openbsd.org 2000/07/13 17:14:09
[clientloop.c]
typo; todd@fries.net
- provos@cvs.openbsd.org 2000/07/13 17:19:31
[scp.c]
close can fail on AFS, report error; from Greg Hudson <ghudson@mit.edu>
- markus@cvs.openbsd.org 2000/07/14 16:59:46
[readconf.c servconf.c]
allow leading whitespace. ok niels
- djm@cvs.openbsd.org 2000/07/14 22:01:38
[ssh-keygen.c ssh.c]
Always create ~/.ssh with mode 700; ok Markus
Diffstat (limited to 'scp.c')
-rw-r--r-- | scp.c | 9 |
1 files changed, 6 insertions, 3 deletions
@@ -45,7 +45,7 @@ | |||
45 | */ | 45 | */ |
46 | 46 | ||
47 | #include "includes.h" | 47 | #include "includes.h" |
48 | RCSID("$OpenBSD: scp.c,v 1.32 2000/06/20 01:39:44 markus Exp $"); | 48 | RCSID("$OpenBSD: scp.c,v 1.33 2000/07/13 23:19:31 provos Exp $"); |
49 | 49 | ||
50 | #include "ssh.h" | 50 | #include "ssh.h" |
51 | #include "xmalloc.h" | 51 | #include "xmalloc.h" |
@@ -889,7 +889,10 @@ bad: run_err("%s: %s", np, strerror(errno)); | |||
889 | run_err("%s: set mode: %s", | 889 | run_err("%s: set mode: %s", |
890 | np, strerror(errno)); | 890 | np, strerror(errno)); |
891 | } | 891 | } |
892 | (void) close(ofd); | 892 | if (close(ofd) == -1) { |
893 | wrerr = YES; | ||
894 | wrerrno = errno; | ||
895 | } | ||
893 | (void) response(); | 896 | (void) response(); |
894 | if (setimes && wrerr == NO) { | 897 | if (setimes && wrerr == NO) { |
895 | setimes = 0; | 898 | setimes = 0; |
@@ -1015,7 +1018,7 @@ run_err(const char *fmt,...) | |||
1015 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | 1018 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF |
1016 | * SUCH DAMAGE. | 1019 | * SUCH DAMAGE. |
1017 | * | 1020 | * |
1018 | * $OpenBSD: scp.c,v 1.32 2000/06/20 01:39:44 markus Exp $ | 1021 | * $OpenBSD: scp.c,v 1.33 2000/07/13 23:19:31 provos Exp $ |
1019 | */ | 1022 | */ |
1020 | 1023 | ||
1021 | char * | 1024 | char * |