Fix up twrpTar

Change-Id: I11a8f77b39a6f12aca6157c9aa76c34ef48c4b9f
This commit is contained in:
Ethan Yonker
2015-09-25 11:25:20 -05:00
committed by Dees Troy
parent 5064048ec3
commit 068c76888b
2 changed files with 3 additions and 1 deletions

View File

@@ -10,6 +10,7 @@ extern "C" {
#define LOGERR(...) gui_print_color("error", "E:" __VA_ARGS__)
#define LOGINFO(...) fprintf(stdout, "I:" __VA_ARGS__)
#else
#include <stdio.h>
#define LOGERR(...) printf("E:" __VA_ARGS__)
#define LOGINFO(...) printf("I:" __VA_ARGS__)
#define gui_print(...) printf( __VA_ARGS__ )

View File

@@ -48,6 +48,7 @@ int main(int argc, char **argv) {
unsigned j;
string Directory, Tar_Filename;
unsigned long long temp1 = 0, temp2 = 0;
pid_t tar_fork_pid = 0;
#ifndef TW_EXCLUDE_ENCRYPTED_BACKUPS
string Password;
#endif
@@ -143,7 +144,7 @@ int main(int argc, char **argv) {
}
#endif
if (action == 1) {
if (tar.createTarFork(&temp1, &temp2) != 0) {
if (tar.createTarFork(&temp1, &temp2, tar_fork_pid) != 0) {
sync();
return -1;
}