- case CMDDBGSHELL: /* give us an interactive shell */
- if (!iswiz())
- break;
- if (fileno(InChannel) != 0)
- {
- (void) close(0);
- (void) dup(fileno(InChannel));
- if (fileno(InChannel) != fileno(OutChannel))
- (void) fclose(InChannel);
- InChannel = stdin;
- }
- if (fileno(OutChannel) != 1)
- {
- (void) close(1);
- (void) dup(fileno(OutChannel));
- (void) fclose(OutChannel);
- OutChannel = stdout;
- }
- (void) close(2);
- (void) dup(1);
- execl("/bin/csh", "sendmail", 0);
- execl("/bin/sh", "sendmail", 0);
- message("500", "Can't");
- exit(EX_UNAVAILABLE);
-