xxxxxxxxxx
#To apply patches where a patch does not apply for different line endings, do:
dos2unix <patch-name> #This will convert the patch from DOS to UNIX type CRLF
patch -p1 < <patch-name> #This applies the patch without commiting
unix2dos <modified-files> # After you apply usually the entire files show changed.
# So it is required to revert to DOS format line endings.