2 * Execute an executable with zero argc and specified anvironment.
4 * Copyright (c) 2017-2018 Dmitry V. Levin <ldv@altlinux.org>
7 * SPDX-License-Identifier: GPL-2.0-or-later
15 main(const int ac, char **const av)
18 error_msg_and_fail("missing operand");
19 const char *const path = av[1];
21 execve(path, av + 1, av + 2);
22 perror_msg_and_fail("execve: %s", path);