Radish alpha
H
rad:z3QDZAW2FAfuLvihrhiyDC9fAD8G9
HardenedBSD Package Manager
Radicle
Git
Explicitly return a failed value if the command execution failed
Baptiste Daroussin committed 8 years ago
commit ad1b669fdf7f685e255e979f4fd9b8a0be7dad5f
parent 08a58c5
1 file changed +2 -0
modified src/version.c
@@ -601,6 +601,8 @@ exec_buf(UT_string *res, char **argv) {
		if (errno != EINTR)
			return (-1);
	}
+
	if (WEXITSTATUS(pstat) != 0)
+
		return (-1);

	return (utstring_len(res));
}