Home | History | Annotate | Download | only in applypatch

Lines Matching full:target_filename

591 // - if the sha1 hash of <target_filename> is <target_sha1_string>,
599 // moves it to replace <target_filename>, and exits successfully.
600 // Note that if <source_filename> and <target_filename> are not the
602 // <target_filename> may be the string "-" to mean "the same as
613 const char* target_filename,
621 if (target_filename[0] == '-' &&
622 target_filename[1] == '\0') {
623 target_filename = source_filename;
639 if (LoadFileContents(target_filename, &source_file,
645 target_filename);
651 (target_filename != source_filename &&
652 strcmp(target_filename, source_filename) != 0)) {
699 // assume that target_filename (eg "/system/app/Foo.apk") is located
702 char target_fs[strlen(target_filename)+1];
703 char* slash = strchr(target_filename+1, '/');
705 int count = slash - target_filename;
706 strncpy(target_fs, target_filename, count);
709 strcpy(target_fs, target_filename);
716 if (strncmp(target_filename, "MTD:", 4) == 0 ||
717 strncmp(target_filename, "EMMC:", 5) == 0) {
801 if (strncmp(target_filename, "MTD:", 4) == 0 ||
802 strncmp(target_filename, "EMMC:", 5) == 0) {
816 outname = (char*)malloc(strlen(target_filename) + 10);
817 strcpy(outname, target_filename);
879 if (WriteToPartition(msi.buffer, msi.pos, target_filename) != 0) {
880 printf("write of patched data to %s failed\n", target_filename);
898 if (rename(outname, target_filename) != 0) {
900 target_filename, strerror(errno));