* libmisc/setupenv.c: Fix typo from 2009-11-01.
This commit is contained in:
parent
c5c94a1d2c
commit
0fce70b091
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user