mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-15 05:22:59 +02:00
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>
16 lines
326 B
C
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);
|
|
}
|