poke-devel
[Top][All Lists]
Advanced

[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'



reply via email to

[Prev in Thread] Current Thread [Next in Thread]