Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ssh-keygen.c
Original file line number Diff line number Diff line change
Expand Up @@ -3210,6 +3210,12 @@ sk_suffix(const char *application, const uint8_t *user, size_t userlen)
else
ret = xstrdup(application);

#ifdef WINDOWS
/* replace any additional colons with underscores so filename is valid */
while ((cp = strchr(ret, ':')) != NULL)
*cp = '_';
#endif

/* Count trailing zeros in user */
for (i = 0; i < userlen; i++) {
if (user[userlen - i - 1] != 0)
Expand Down