summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard Basch <probe@mit.edu>1996-04-01 15:11:43 +0000
committerRichard Basch <probe@mit.edu>1996-04-01 15:11:43 +0000
commit81fdcfce745159a1529d96a57a1e756d71b18f25 (patch)
tree1a3a7458129cb4992df7daeeea3d99f6661b7618 /src
parent8594523daeabf56b1ff379dc4d3917ac56649d1f (diff)
downloadkrb5-81fdcfce745159a1529d96a57a1e756d71b18f25.tar.gz
krb5-81fdcfce745159a1529d96a57a1e756d71b18f25.tar.xz
krb5-81fdcfce745159a1529d96a57a1e756d71b18f25.zip
Whitespace cleanup for readability
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7745 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/appl/bsd/krshd.c26
1 files changed, 14 insertions, 12 deletions
diff --git a/src/appl/bsd/krshd.c b/src/appl/bsd/krshd.c
index eae3ab5840..c701850fa9 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