Otherwise, the first argument would always be swollowed :(
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
Acked-by: Peter Müller <peter.mueller@ipfire.org>
// Add command as first element to argv
argv[argc++] = command;
// Add command as first element to argv
argv[argc++] = command;
// Add all other arguments
if (args) {
// Add all other arguments
if (args) {
- return system_core(argv[0], argv, 0, 0, "safe_system");
+ return system_core(argv[0], argv + 1, 0, 0, "safe_system");
}
/* Much like safe_system but lets you specify a non-root uid and gid to run
}
/* Much like safe_system but lets you specify a non-root uid and gid to run
- return system_core(argv[0], argv, uid, gid, "unpriv_system");
+ return system_core(argv[0], argv + 1, uid, gid, "unpriv_system");
}
/* General routine to initialise a setuid root program, and put the
}
/* General routine to initialise a setuid root program, and put the