version 1.317, 2018/06/06 18:29:18 |
version 1.318, 2018/07/09 21:59:10 |
|
|
fatal("Couldn't generate KRL"); |
fatal("Couldn't generate KRL"); |
if ((fd = open(identity_file, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1) |
if ((fd = open(identity_file, O_WRONLY|O_CREAT|O_TRUNC, 0644)) == -1) |
fatal("open %s: %s", identity_file, strerror(errno)); |
fatal("open %s: %s", identity_file, strerror(errno)); |
if (atomicio(vwrite, fd, (void *)sshbuf_ptr(kbuf), sshbuf_len(kbuf)) != |
if (atomicio(vwrite, fd, sshbuf_mutable_ptr(kbuf), sshbuf_len(kbuf)) != |
sshbuf_len(kbuf)) |
sshbuf_len(kbuf)) |
fatal("write %s: %s", identity_file, strerror(errno)); |
fatal("write %s: %s", identity_file, strerror(errno)); |
close(fd); |
close(fd); |