1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-02 01:18:26 +03:00

cov: ignoring

This commit is contained in:
Zdenek Kabelac 2021-09-24 22:08:26 +02:00
parent dab4acb8f8
commit bf0d558067
2 changed files with 2 additions and 0 deletions

View File

@ -82,6 +82,7 @@ int main(int args, char **argv) {
if (val) if (val)
(void) setenv("LVM_EXPECTED_EXIT_STATUS", val, 1); (void) setenv("LVM_EXPECTED_EXIT_STATUS", val, 1);
/* coverity[os_cmd_sink] intentionally passing argv + 1 */
execvp(argv[1], &argv[1]); execvp(argv[1], &argv[1]);
/* should not be accessible */ /* should not be accessible */
return FAILURE; return FAILURE;

View File

@ -19,6 +19,7 @@
int main(int argc, char **argv) int main(int argc, char **argv)
{ {
/* coverity[os_cmd_sink] intentionally passing argv */
return lvm2_main(argc, argv); return lvm2_main(argc, argv);
} }