summaryrefslogtreecommitdiffstats
path: root/usr.bin/make/job.c
diff options
context:
space:
mode:
authorharti <harti@FreeBSD.org>2005-05-24 13:19:40 +0000
committerharti <harti@FreeBSD.org>2005-05-24 13:19:40 +0000
commitb6ff4ff920cf5798accf03ca1ac826688d01b4f0 (patch)
tree7493787569d0aabac9dbba1a77ce47563a66ff4d /usr.bin/make/job.c
parent6c1f15aa0b3b5827f9587dedd80316843096497c (diff)
downloadFreeBSD-src-b6ff4ff920cf5798accf03ca1ac826688d01b4f0.zip
FreeBSD-src-b6ff4ff920cf5798accf03ca1ac826688d01b4f0.tar.gz
Use the name of the default shell instead of a numeric index to select
the default shell. Idea from: DragonFlyBSD
Diffstat (limited to 'usr.bin/make/job.c')
-rw-r--r--usr.bin/make/job.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usr.bin/make/job.c b/usr.bin/make/job.c
index c2df52b..6567afd 100644
--- a/usr.bin/make/job.c
+++ b/usr.bin/make/job.c
@@ -2719,7 +2719,7 @@ Shell_Init(void)
for (i = 0; shells_init[i] != NULL; i++) {
sh = JobParseShellSpec(shells_init[i], &fullSpec);
TAILQ_INSERT_TAIL(&shells, sh, link);
- if (i == DEFSHELL)
+ if (strcmp(sh->name, DEFSHELLNAME) == 0)
commandShell = sh;
}
}
OpenPOWER on IntegriCloud