mirror of
https://github.com/PowerShell/openssh-portable.git
synced 2025-07-29 16:54:51 +02:00
- djm@cvs.openbsd.org 2013/07/12 05:42:03
[ssh-keygen.c] do_print_resource_record() can never be called with a NULL filename, so don't attempt (and bungle) asking for one if it has not been specified bz#2127 ok dtucker@
This commit is contained in:
parent
7313fc9222
commit
5bb8833e80
@ -49,6 +49,11 @@
|
||||
in ssh_gai_strerror() don't fallback to strerror for EAI_SYSTEM when
|
||||
errno == 0. Avoids confusing error message in some broken resolver
|
||||
cases. bz#2122 patch from plautrba AT redhat.com; ok dtucker
|
||||
- djm@cvs.openbsd.org 2013/07/12 05:42:03
|
||||
[ssh-keygen.c]
|
||||
do_print_resource_record() can never be called with a NULL filename, so
|
||||
don't attempt (and bungle) asking for one if it has not been specified
|
||||
bz#2127 ok dtucker@
|
||||
|
||||
20130702
|
||||
- (dtucker) [contrib/cygwin/README contrib/cygwin/ssh-host-config
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $OpenBSD: ssh-keygen.c,v 1.228 2013/07/12 00:20:00 djm Exp $ */
|
||||
/* $OpenBSD: ssh-keygen.c,v 1.229 2013/07/12 05:42:03 djm Exp $ */
|
||||
/*
|
||||
* Author: Tatu Ylonen <ylo@cs.hut.fi>
|
||||
* Copyright (c) 1994 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
|
||||
@ -1301,7 +1301,7 @@ do_print_resource_record(struct passwd *pw, char *fname, char *hname)
|
||||
struct stat st;
|
||||
|
||||
if (fname == NULL)
|
||||
ask_filename(pw, "Enter file in which the key is");
|
||||
fatal("%s: no filename", __func__);
|
||||
if (stat(fname, &st) < 0) {
|
||||
if (errno == ENOENT)
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user