static /*@only@*/char *caller_pass;
#endif
#endif /* !USE_PAM */
-static bool do_interactive_shell = false;
+static bool doshell = false;
static bool fakelogin = false;
static /*@observer@*/const char *shellstr;
static /*@null@*/char *command = NULL;
if ( (sigaddset (&ourset, SIGTERM) != 0)
|| (sigaddset (&ourset, SIGALRM) != 0)
|| (sigaction (SIGTERM, &action, NULL) != 0)
- || (!do_interactive_shell /* handle SIGINT (Ctrl-C), SIGQUIT
- * (Ctrl-\), and SIGTSTP (Ctrl-Z)
- * since the child will not control
- * the tty.
- */
+ || ( !doshell /* handle SIGINT (Ctrl-C), SIGQUIT
+ * (Ctrl-\), and SIGTSTP (Ctrl-Z)
+ * since the child will not control
+ * the tty.
+ */
&& ( (sigaddset (&ourset, SIGINT) != 0)
|| (sigaddset (&ourset, SIGQUIT) != 0)
|| (sigaddset (&ourset, SIGTSTP) != 0)
optidx++;
}
- do_interactive_shell = (argc == optidx); /* any arguments remaining? */
+ doshell = (argc == optidx); /* any arguments remaining? */
if (NULL != command) {
- do_interactive_shell = false;
+ doshell = false;
}
}
set_environment (pw);
- if (!do_interactive_shell) {
+ if (!doshell) {
/* There is no need for a controlling terminal.
* This avoids the callee to inject commands on
* the caller's tty. */
cp = Basename (shellstr);
}
- if (!do_interactive_shell) {
+ if (!doshell) {
int err;
/* Position argv to the remaining arguments */
argv += optidx;