[Bug 2449] uid for expansion in ControlPath

bugzilla-daemon at bugzilla.mindrot.org bugzilla-daemon at bugzilla.mindrot.org
Fri Sep 4 14:08:47 AEST 2015


https://bugzilla.mindrot.org/show_bug.cgi?id=2449

--- Comment #2 from Darren Tucker <dtucker at zip.com.au> ---
Comment on attachment 2687
  --> https://bugzilla.mindrot.org/attachment.cgi?id=2687
uid for expansion in ControlPath

>-	char thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV];
>+	char thishost[NI_MAXHOST], shorthost[NI_MAXHOST], portstr[NI_MAXSERV],
>+	    uidstr[11];
> 	char cname[NI_MAXHOST];

I'd maybe make uidstr part of the following line for neatness.

Also, someone will eventually make a 64 bit uid_t, so perhaps you want
to spend the extra 10 bytes of stacks space now?

-- 
You are receiving this mail because:
You are watching someone on the CC list of the bug.
You are watching the assignee of the bug.


More information about the openssh-bugs mailing list