partially removed force flag

This commit is contained in:
Michael Krayer 2023-10-11 13:46:22 +02:00
parent 080e3e9e44
commit 9531cfcdac
1 changed files with 2 additions and 5 deletions

View File

@ -594,7 +594,7 @@ static int list_session(void) {
int main(int argc, char *argv[]) {
int opt;
bool force = false;
bool force = false; // to be removed
char **cmd = NULL, action = '\0';
char *default_cmd[2] = { "/bin/bash", NULL };
@ -602,7 +602,7 @@ int main(int argc, char *argv[]) {
server.name = basename(argv[0]);
gethostname(server.host+1, sizeof(server.host) - 1);
while ((opt = getopt(argc, argv, "aAchlne:fqrvz")) != -1) {
while ((opt = getopt(argc, argv, "aAchlne:qrvz")) != -1) {
switch (opt) {
case 'a':
case 'A':
@ -619,9 +619,6 @@ int main(int argc, char *argv[]) {
optarg[0] = CTRL(optarg[1]);
KEY_DETACH = optarg[0];
break;
case 'f':
force = true;
break;
case 'h':
usage();
exit(EXIT_SUCCESS);