From 81fdcfce745159a1529d96a57a1e756d71b18f25 Mon Sep 17 00:00:00 2001 From: Richard Basch Date: Mon, 1 Apr 1996 15:11:43 +0000 Subject: [PATCH] Whitespace cleanup for readability git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7745 dc483132-0cff-0310-8789-dd5450dbe970 --- src/appl/bsd/krshd.c | 26 ++++++++++++++------------ 1 file changed, 14 insertions(+), 12 deletions(-) diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c index eae3ab584..c701850fa 100644 --- a/src/appl/bsd/krshd.c +++ b/src/appl/bsd/krshd.c @@ -1276,23 +1276,25 @@ if (ccache) } sprintf(path, "PATH=%s:%s", kprogdir, path_rest); envinit[PATHENV] = path; -/* If we have KRB5CCNAME set, then copy into the - * child's environment. This can't really have - * a fixed position because tz may or may not be set. - */ + + /* If we have KRB5CCNAME set, then copy into the + * child's environment. This can't really have + * a fixed position because tz may or may not be set. + */ if (getenv("KRB5CCNAME")) { int i; char *buf = (char *)malloc(strlen(getenv("KRB5CCNAME")) +strlen("KRB5CCNAME=")+1); - if (buf) { -sprintf(buf, "KRB5CCNAME=%s",getenv("KRB5CCNAME")); - -for (i = 0; envinit[i]; i++); -envinit[i] =buf; - } - /* If we do anything else, make sure there is space in the array. - */ + if (buf) { + sprintf(buf, "KRB5CCNAME=%s",getenv("KRB5CCNAME")); + + for (i = 0; envinit[i]; i++); + envinit[i] =buf; + } } + + /* XXX - If we do anything else, make sure there is space in the array. */ + environ = envinit; #ifdef KERBEROS -- 2.26.2