[Pkg-shadow-devel] groupmod: Cannot determine your user name.

Nicolas François nicolas.francois at centraliens.net
Thu Nov 5 22:24:23 UTC 2009


Hello,

On Mon, Nov 02, 2009 at 09:37:22PM +0100, tuxce.net at gmail.com wrote:
> 
> root ~  #  LC_ALL=C groupmod -g 201 test
> groupmod: Cannot determine your user name.
> -------
> [...]
> -------
> pampw = getpwuid (getuid ()); /* local, no need for xgetpwuid */
> if (NULL == pamh) {
> 	fprintf (stderr,
> 		_("%s: Cannot determine your username.\n"), Prog);
> 	exit (1);
> }
> 
> retval = pam_start ("groupmod", pampw->pw_name, &conv, &pamh);
> -------
> 
> I think it should be "(NULL == pampw)".

Yes. Thanks for the report. I fixed it on the repository.

For others information, this impact all invocations of groupmod when
configured with --enable-account-tools-setuid.

Best Regards,
-- 
Nekral



More information about the Pkg-shadow-devel mailing list