[PATCH 1/2] linux ttyname: return link if appropriate

Serge Hallyn serge.hallyn@ubuntu.com
Mon Apr 18 20:23:00 GMT 2016


Quoting Mike Frysinger (vapier@gentoo.org):
> On 18 Apr 2016 19:53, Serge Hallyn wrote:
> > +	  strcpy (ttyname_buf, procname);
> > +	  return ttyname_buf;
> 
> at this point you could just write:
>   return strcpy (ttyname_buf, procname);

Yup.

I can send another patch (squashed), but I'm sort of waiting
for Florian's answer about security concerns.



More information about the Libc-alpha mailing list