Skip to content

unable to apply idevicerestore.patch #119

@un-simp

Description

@un-simp
root@localhost:/home/un/idevicerestore# git apply ../idevicerestore.patch 
error: patch failed: src/asr.c:247
error: src/asr.c: patch does not apply

--reject output

Checking patch src/asr.c...
error: while searching for:
	while (1) {
		if (asr_receive(asr, &packet) < 0) {
			error("ERROR: Unable to receive validation packet\n");
			return -1;
		}

		if (packet == NULL) {
			if (attempts < 5) {
				info("Retrying to receive validation packet... %d\n", attempts);
				attempts++;
				sleep(1);
				continue;
			}
		}

		attempts = 0;

error: patch failed: src/asr.c:247
Hunk #3 succeeded at 366 (offset -2 lines).
Checking patch src/restore.c...
Applying patch src/asr.c with 1 reject...
Hunk #1 applied cleanly.
Rejected hunk #2.
Hunk #3 applied cleanly.
Applied patch src/restore.c cleanly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions