* libmisc/setupenv.c: Fix typo from 2009-11-01.

This commit is contained in:
nekral-guest 2010-01-24 17:05:37 +00:00
parent c5c94a1d2c
commit 0fce70b091
2 changed files with 5 additions and 1 deletions

View File

@ -1,3 +1,7 @@
2009-01-24 Nicolas François <nicolas.francois@centraliens.net>
* libmisc/setupenv.c: Fix typo from 2009-11-01.
2009-01-24 Paweł Hajdan, Jr. <phajdan.jr@gentoo.org>
* configure.in: Add support for TCB in configure.in. Actual TCB

View File

@ -265,7 +265,7 @@ void setup_env (struct passwd *info)
if (NULL == cp) {
/* not specified, use a minimal default */
addenv ((pwent.pw_uid == 0) ? "PATH=/sbin:/bin:/usr/sbin:/usr/bin" : "PATH=/bin:/usr/bin", NULL);
addenv ((info->pw_uid == 0) ? "PATH=/sbin:/bin:/usr/sbin:/usr/bin" : "PATH=/bin:/usr/bin", NULL);
} else if (strchr (cp, '=')) {
/* specified as name=value (PATH=...) */
addenv (cp, NULL);