]>
Commit | Line | Data |
---|---|---|
1 | --- system.c.orig 2003-05-20 15:23:25.000000000 -0700 | |
2 | +++ system.c 2004-08-31 12:00:07.000000000 -0700 | |
3 | @@ -58,8 +58,12 @@ | |
4 | struct sigaction ign, intact, quitact; | |
5 | sigset_t newsigblock, oldsigblock; | |
6 | ||
7 | - if (!command) /* just checking... */ | |
8 | - return(1); | |
9 | + if (!command) { /* just checking... */ | |
10 | + if (access(_PATH_BSHELL, F_OK) == -1) /* if no sh or no access */ | |
11 | + return(0); | |
12 | + else | |
13 | + return(1); | |
14 | + } | |
15 | ||
16 | /* | |
17 | * Ignore SIGINT and SIGQUIT, block SIGCHLD. Remember to save |