Home | History | Annotate | Download | only in applypatch

Lines Matching refs:outname

820     char* outname;
926 outname = NULL;
942 outname = (char*)malloc(strlen(target_filename) + 10);
943 strcpy(outname, target_filename);
944 strcat(outname, ".patch");
946 output = open(outname, O_WRONLY | O_CREAT | O_TRUNC | O_SYNC,
950 outname, strerror(errno));
979 printf("failed to fsync file \"%s\" (%s)\n", outname, strerror(errno));
983 printf("failed to close file \"%s\" (%s)\n", outname, strerror(errno));
995 if (outname != NULL) {
996 unlink(outname);
1024 if (chmod(outname, source_to_use->st.st_mode) != 0) {
1025 printf("chmod of \"%s\" failed: %s\n", outname, strerror(errno));
1028 if (chown(outname, source_to_use->st.st_uid,
1030 printf("chown of \"%s\" failed: %s\n", outname, strerror(errno));
1035 if (rename(outname, target_filename) != 0) {