Bugzilla – Attachment 3477 Details for
Bug 3273
ssh-keygen uses getpwuid() without pwcopy()
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Add missing call to pwcopy() in ssh-keygen.c
ssh-keygen-add-pwcopy-call.diff (text/plain), 305 bytes, created by
Donovan Watteau
on 2021-03-07 20:28:46 AEDT
(
hide
)
Description:
Add missing call to pwcopy() in ssh-keygen.c
Filename:
MIME Type:
Creator:
Donovan Watteau
Created:
2021-03-07 20:28:46 AEDT
Size:
305 bytes
patch
obsolete
>--- openssh-8.5p1/ssh-keygen.c.orig >+++ openssh-8.5p1/ssh-keygen.c >@@ -3154,6 +3154,7 @@ > pw = getpwuid(getuid()); > if (!pw) > fatal("No user exists for uid %lu", (u_long)getuid()); >+ pw = pwcopy(pw); > if (gethostname(hostname, sizeof(hostname)) == -1) > fatal("gethostname: %s", strerror(errno)); >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3273
: 3477