[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Bug(s) in parse_args and/or elsewhere
From: |
John Darrington |
Subject: |
Bug(s) in parse_args and/or elsewhere |
Date: |
Sat, 7 Dec 2019 10:51:12 +0100 |
in poke.c(parse_args) there is the code:
case 's':
case SCRIPT_ARG:
{
int ret = pk_cmd_exec_script (optarg);
if (!ret)
goto exit_failure;
poke_interactive_p = 0;
break;
}
However pk_cmd_exec_script is written such that it returns zero on success.
Hence poke exits with failure when it succeeds and exists with success when it
fails.
It seems there is a similar problem for the -c case.
J'
- Bug(s) in parse_args and/or elsewhere,
John Darrington <=