summaryrefslogtreecommitdiff
path: root/bin/ksh/jobs.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2015-12-30 09:07:01 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2015-12-30 09:07:01 +0000
commit91f19920f361f1d81ba1b17381decf1fd58dd9a9 (patch)
tree15a5a67595131fee71df3697830247948600d1ae /bin/ksh/jobs.c
parent2c0ae468211f08c5cf2673f6d7430d8ab8c4e3d6 (diff)
rename global "e" to genv to avoid accidental shadowing and aliasing.
ok millert nicm tb
Diffstat (limited to 'bin/ksh/jobs.c')
-rw-r--r--bin/ksh/jobs.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/ksh/jobs.c b/bin/ksh/jobs.c
index 046869bb8ed..8017a5e9125 100644
--- a/bin/ksh/jobs.c
+++ b/bin/ksh/jobs.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: jobs.c,v 1.53 2015/12/14 13:59:42 tb Exp $ */
+/* $OpenBSD: jobs.c,v 1.54 2015/12/30 09:07:00 tedu Exp $ */
/*
* Process and job control
@@ -1293,7 +1293,7 @@ check_job(Job *j)
struct env *ep;
int fd = 2;
- for (ep = e; ep; ep = ep->oenv)
+ for (ep = genv; ep; ep = ep->oenv)
if (ep->savefd && ep->savefd[2])
fd = ep->savefd[2];
shf_reopen(fd, SHF_WR, shl_j);