[Pkg-shadow-devel] [PATCH_02] a Debian patch for newgrp.c

Christian Perrier bubulle@debian.org
Fri, 15 Apr 2005 22:55:22 +0200


Quoting Nicolas Fran=E7ois (nicolas.francois@centraliens.net):
> Hello,
>=20
> Another simple Debian patch that can be applied safely.
> (related to Debian's bug #162303)

BTW, one of the most pedantic changelog entry I've ever seen in a
Debian changelog...:-(

   * newgrp should be aware that getlogin() and ttyname() are not
     guaranteed to return anything and NOT blindly assume that they
     successfully returned a pointer to a string.  I mean, really, people=
,
     that sort of thing hasn't been reliable since 4.2BSD on a VAX.  I'll
     bet most of the working on the upstream weren't even born yet when
     this sort of thing was commonplace (it was NEVER acceptable).
     closes: #162303


...written by Karl who really shouldn't be proud of that.