On Fri, Dec 04, 2015 at 03:47:07PM -0700, Theo de Raadt wrote: > > Is it worth it, knowing that it's a deprecated BSD-specific function? > > Careful there :-) It isn't deprecated in the BSD's, and it isn't > deprecated in any other system which is still doing maintainance and > improvements to it...
$ grep usershell /usr/src/lib/libc/hidden/unistd.h PROTO_DEPRECATED(endusershell); PROTO_DEPRECATED(getusershell); PROTO_DEPRECATED(setusershell); Formally, it is deprecated. Which is why I had to introduce the usershell_reset function. We are not able to call endusershell from within setusershell due to these entries, which Mike's code does.
