fix issue #1058, fix comment

This commit is contained in:
lupo1977 2018-02-03 02:52:22 +01:00
parent 5758b1d725
commit 95f3dd2fa8

View File

@ -1543,7 +1543,7 @@ do_change_comment(struct passwd *pw)
strlcat(identity_file, ".pub", sizeof(identity_file));
f = fopen(identity_file, "w");
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)
fatal("write key failed: %s", ssh_err(r));
sshkey_free(public);