Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/netbsd-3]: src/crypto/dist/ssh Pull up revision 1.27 (requested by lukem...
details: https://anonhg.NetBSD.org/src/rev/b97ca2de4b9c
branches: netbsd-3
changeset: 576230:b97ca2de4b9c
user: snj <snj%NetBSD.org@localhost>
date: Wed Jun 15 05:30:51 2005 +0000
description:
Pull up revision 1.27 (requested by lukem in ticket #410):
Don't attempt to close a random file descriptor upon error.
Detected with gcc -Wuninitialized.
diffstat:
crypto/dist/ssh/scp.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 18d9c62ab565 -r b97ca2de4b9c crypto/dist/ssh/scp.c
--- a/crypto/dist/ssh/scp.c Wed Jun 15 05:27:39 2005 +0000
+++ b/crypto/dist/ssh/scp.c Wed Jun 15 05:30:51 2005 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: scp.c,v 1.25 2005/02/13 05:57:26 christos Exp $ */
+/* $NetBSD: scp.c,v 1.25.2.1 2005/06/15 05:30:51 snj Exp $ */
/*
* scp - secure remote copy. This is basically patched BSD rcp which
* uses ssh to do the data transfer (instead of using rcmd).
@@ -73,7 +73,7 @@
#include "includes.h"
RCSID("$OpenBSD: scp.c,v 1.117 2004/08/11 21:44:32 avsm Exp $");
-__RCSID("$NetBSD: scp.c,v 1.25 2005/02/13 05:57:26 christos Exp $");
+__RCSID("$NetBSD: scp.c,v 1.25.2.1 2005/06/15 05:30:51 snj Exp $");
#include "xmalloc.h"
#include "atomicio.h"
@@ -503,6 +503,7 @@
int len;
for (indx = 0; indx < argc; ++indx) {
+ fd = -1;
name = argv[indx];
statbytes = 0;
len = strlen(name);
Home |
Main Index |
Thread Index |
Old Index