incorrect check

master
Daniel Kolesa 2017-05-02 01:08:01 +02:00
parent 3402fedf28
commit 5a09b58613
1 changed files with 1 additions and 1 deletions

View File

@ -120,7 +120,7 @@ static void exec_command(
if (pid == -1) {
throw std::runtime_error{"command failed"};
} else if (!pid) {
if (!execvp(argp[0], argp.get())) {
if (execvp(argp[0], argp.get())) {
argp.reset();
std::exit(1);
}