Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/crypto/external/bsd/openssh/dist CID 1356389: Remove TOCTOU.
details: https://anonhg.NetBSD.org/src/rev/4fffd21347c6
branches: trunk
changeset: 344194:4fffd21347c6
user: christos <christos%NetBSD.org@localhost>
date: Wed Mar 16 21:07:59 2016 +0000
description:
CID 1356389: Remove TOCTOU.
diffstat:
crypto/external/bsd/openssh/dist/ssh-keygen.c | 6 ++----
1 files changed, 2 insertions(+), 4 deletions(-)
diffs (27 lines):
diff -r 1e5cbfe3e273 -r 4fffd21347c6 crypto/external/bsd/openssh/dist/ssh-keygen.c
--- a/crypto/external/bsd/openssh/dist/ssh-keygen.c Wed Mar 16 21:06:06 2016 +0000
+++ b/crypto/external/bsd/openssh/dist/ssh-keygen.c Wed Mar 16 21:07:59 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ssh-keygen.c,v 1.21 2016/03/11 13:15:02 christos Exp $ */
+/* $NetBSD: ssh-keygen.c,v 1.22 2016/03/16 21:07:59 christos Exp $ */
/* $OpenBSD: ssh-keygen.c,v 1.288 2016/02/15 09:47:49 dtucker Exp $ */
/*
@@ -15,7 +15,7 @@
*/
#include "includes.h"
-__RCSID("$NetBSD: ssh-keygen.c,v 1.21 2016/03/11 13:15:02 christos Exp $");
+__RCSID("$NetBSD: ssh-keygen.c,v 1.22 2016/03/16 21:07:59 christos Exp $");
#include <sys/types.h>
#include <sys/socket.h>
#include <sys/stat.h>
@@ -1915,8 +1915,6 @@
if (!have_identity)
ask_filename(pw, "Enter file in which the key is");
- if (strcmp(identity_file, "-") != 0 && stat(identity_file, &st) < 0)
- fatal("%s: %s: %s", __progname, identity_file, strerror(errno));
path = identity_file;
if (strcmp(path, "-") == 0) {
Home |
Main Index |
Thread Index |
Old Index