To apply this patch you need to cd to the directory to be patched and run: patch -p1 < .../.../your/patch/file. -p1 flag means "ignore one directory name from the beginning of the file paths in the patch", so file to be patched will be found and the resulting file will have the same name.