mirror of
https://github.com/PowerShell/Win32-OpenSSH.git
synced 2025-07-24 22:45:17 +02:00
fix issue #1058, fix comment
This commit is contained in:
parent
5758b1d725
commit
95f3dd2fa8
@ -1543,7 +1543,7 @@ do_change_comment(struct passwd *pw)
|
|||||||
strlcat(identity_file, ".pub", sizeof(identity_file));
|
strlcat(identity_file, ".pub", sizeof(identity_file));
|
||||||
f = fopen(identity_file, "w");
|
f = fopen(identity_file, "w");
|
||||||
if (f == NULL)
|
if (f == NULL)
|
||||||
fatal("fdopen %s failed: %s", identity_file, strerror(errno));
|
fatal("fopen %s failed: %s", identity_file, strerror(errno));
|
||||||
if ((r = sshkey_write(public, f)) != 0)
|
if ((r = sshkey_write(public, f)) != 0)
|
||||||
fatal("write key failed: %s", ssh_err(r));
|
fatal("write key failed: %s", ssh_err(r));
|
||||||
sshkey_free(public);
|
sshkey_free(public);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user