mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2025-01-11 17:04:19 +01:00
Allow shell commands in all modes.
Old behavior can be had with define SHELL_ONLY_INTERACTIVELY
This commit is contained in:
parent
a0ea75ecbd
commit
45768c728b
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18856
@ -17,7 +17,7 @@
|
||||
* IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
|
||||
* WARRANTIES OF MERCHANTIBILITY AND FITNESS FOR A PARTICULAR PURPOSE.
|
||||
*
|
||||
* $Id: command.c,v 1.20 1996/10/06 13:32:27 jkh Exp $
|
||||
* $Id: command.c,v 1.21 1996/10/07 10:01:17 sos Exp $
|
||||
*
|
||||
*/
|
||||
#include <sys/types.h>
|
||||
@ -166,7 +166,7 @@ char **argv;
|
||||
if((shell = getenv("SHELL")) == 0) {
|
||||
shell = _PATH_BSHELL;
|
||||
}
|
||||
|
||||
#ifdef SHELL_ONLY_INTERACTIVELY
|
||||
#ifndef HAVE_SHELL_CMD_WITH_ANY_MODE
|
||||
if( mode != MODE_INTER) {
|
||||
fprintf(stdout,
|
||||
@ -180,7 +180,7 @@ char **argv;
|
||||
return(1);
|
||||
}
|
||||
#endif /* HAVE_SHELL_CMD_WITH_ANY_MODE */
|
||||
|
||||
#endif /* SHELL_ONLY_INTERACTIVELY */
|
||||
if((shpid = fork()) == 0) {
|
||||
int dtablesize, i ;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user