Files
bpfire/src/misc-progs/extrahdctrl.c
Michael Tremer 49471f05d5 misc-progs: Fix passing argument list
The run() function expects all arguments without the basename of the
program.

This regression was introduced in a609195a26.

Fixes: #12886
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
2022-06-23 13:21:23 +00:00

16 lines
326 B
C

/* This file is part of the IPFire Firewall.
*
* This program is distributed under the terms of the GNU General Public
* Licence. See the file COPYING for details.
*
*/
#include "setuid.h"
int main(int argc, char** argv) {
if (!initsetuid())
exit(1);
return run("/var/ipfire/extrahd/bin/extrahd.pl", argv + 1);
}