summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorbigbiff bigbiff <bigbiff@teamw.in>2013-02-22 16:43:59 +0100
committerbigbiff bigbiff <bigbiff@teamw.in>2013-02-22 16:43:59 +0100
commit23aa8191926ee2fdf666b2c1535a0389385ff84c (patch)
tree547465ab5acbcb9c97b1bfb83309b51114cac15d
parentRemove ignore image size setting (diff)
downloadandroid_bootable_recovery-23aa8191926ee2fdf666b2c1535a0389385ff84c.tar
android_bootable_recovery-23aa8191926ee2fdf666b2c1535a0389385ff84c.tar.gz
android_bootable_recovery-23aa8191926ee2fdf666b2c1535a0389385ff84c.tar.bz2
android_bootable_recovery-23aa8191926ee2fdf666b2c1535a0389385ff84c.tar.lz
android_bootable_recovery-23aa8191926ee2fdf666b2c1535a0389385ff84c.tar.xz
android_bootable_recovery-23aa8191926ee2fdf666b2c1535a0389385ff84c.tar.zst
android_bootable_recovery-23aa8191926ee2fdf666b2c1535a0389385ff84c.zip
-rw-r--r--twrpTar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/twrpTar.cpp b/twrpTar.cpp
index 5d1752131..c4600aa4d 100644
--- a/twrpTar.cpp
+++ b/twrpTar.cpp
@@ -436,7 +436,7 @@ int twrpTar::createTar() {
DataManager::GetValue(TW_USE_COMPRESSION_VAR, use_compression);
if (use_compression) {
string cmd = "pigz - > '" + tarfn + "'";
- p = __popen(cmd.c_str(), "w");
+ p = popen(cmd.c_str(), "w");
fd = fileno(p);
if (!p) return -1;
if(tar_fdopen(&t, fd, charRootDir, &type, O_RDONLY | O_LARGEFILE, 0644, TAR_GNU) != 0) {
@@ -458,7 +458,7 @@ int twrpTar::openTar(bool gzip) {
if (gzip) {
LOGI("Opening as a gzip\n");
string cmd = "pigz -d -c '" + tarfn + "'";
- FILE* pipe = __popen(cmd.c_str(), "r");
+ FILE* pipe = popen(cmd.c_str(), "r");
int fd = fileno(pipe);
if (!pipe) return -1;
if(tar_fdopen(&t, fd, charRootDir, NULL, O_RDONLY | O_LARGEFILE, 0644, TAR_GNU) != 0) {
@@ -549,7 +549,7 @@ int twrpTar::removeEOT(string tarFile) {
int twrpTar::compress(string fn) {
string cmd = "pigz " + fn;
- p = __popen(cmd.c_str(), "r");
+ p = popen(cmd.c_str(), "r");
if (!p) return -1;
char buffer[128];
string result = "";