Use _PATH_BSHELL instead of hardcoding "/bin/sh"
From: Todd C. Miller <millert@cvs.openbsd.org>
This commit is contained in:
parent
2eb170af4e
commit
8f06ee02a7
8
sh.h
8
sh.h
@ -1,4 +1,4 @@
|
|||||||
/** $MirBSD: src/bin/ksh/sh.h,v 2.8 2004/12/28 22:32:08 tg Exp $ */
|
/** $MirBSD: src/bin/ksh/sh.h,v 2.9 2004/12/31 17:08:29 tg Exp $ */
|
||||||
/* $OpenBSD: sh.h,v 1.23 2004/12/18 22:11:43 millert Exp $ */
|
/* $OpenBSD: sh.h,v 1.23 2004/12/18 22:11:43 millert Exp $ */
|
||||||
|
|
||||||
#ifndef SH_H
|
#ifndef SH_H
|
||||||
@ -255,7 +255,11 @@ extern int dup2(int, int);
|
|||||||
|
|
||||||
#ifndef EXECSHELL
|
#ifndef EXECSHELL
|
||||||
/* shell to exec scripts (see also $SHELL initialization in main.c) */
|
/* shell to exec scripts (see also $SHELL initialization in main.c) */
|
||||||
# define EXECSHELL "/bin/sh"
|
# ifdef _PATH_BSHELL
|
||||||
|
# define EXECSHELL _PATH_BSHELL
|
||||||
|
# else
|
||||||
|
# define EXECSHELL "/bin/mksh"
|
||||||
|
# endif
|
||||||
# define EXECSHELL_STR "EXECSHELL"
|
# define EXECSHELL_STR "EXECSHELL"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user