From 0fce70b091694c1f617ce974004524c1ffd95c9a Mon Sep 17 00:00:00 2001 From: nekral-guest Date: Sun, 24 Jan 2010 17:05:37 +0000 Subject: [PATCH] * libmisc/setupenv.c: Fix typo from 2009-11-01. --- ChangeLog | 4 ++++ libmisc/setupenv.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 8f1d309e..f3944417 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2009-01-24 Nicolas François + + * libmisc/setupenv.c: Fix typo from 2009-11-01. + 2009-01-24 Paweł Hajdan, Jr. * configure.in: Add support for TCB in configure.in. Actual TCB diff --git a/libmisc/setupenv.c b/libmisc/setupenv.c index 95dfd926..36feb9b1 100644 --- a/libmisc/setupenv.c +++ b/libmisc/setupenv.c @@ -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); -- 2.40.0