mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-12-22 15:16:36 -08:00
Migrate EXT4 images instead of removing them
This commit is contained in:
@@ -11,13 +11,10 @@
|
||||
#include <sys/types.h>
|
||||
#include <sys/wait.h>
|
||||
#include <sys/sysmacros.h>
|
||||
#include <vector>
|
||||
|
||||
#include <logging.h>
|
||||
#include <utils.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
unsigned get_shell_uid() {
|
||||
struct passwd* ppwd = getpwnam("shell");
|
||||
if (nullptr == ppwd)
|
||||
@@ -195,8 +192,7 @@ int exec_command(exec_t &exec) {
|
||||
exit(-1);
|
||||
}
|
||||
|
||||
int exec_command_sync(const char **argv) {
|
||||
exec_t exec { .argv = argv };
|
||||
int exec_command_sync(exec_t &exec) {
|
||||
int pid, status;
|
||||
pid = exec_command(exec);
|
||||
if (pid < 0)
|
||||
|
||||
Reference in New Issue
Block a user