[BACK]Return to ssh-keygen.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/ssh-keygen.c between version 1.317 and 1.318

version 1.317, 2018/06/06 18:29:18 version 1.318, 2018/07/09 21:59:10
Line 2240 
Line 2240 
                 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);

Legend:
Removed from v.1.317  
changed lines
  Added in v.1.318