$ sudo gpatch -p1 < mypatch3 patching file agent/mibgroup/hardware/fsys/fsys_mntent.c Hunk #3 succeeded at 193 (offset -3 lines). Hunk #4 FAILED at 230. 1 out of 4 hunks FAILED -- saving rejects to file agent/mibgroup/hardware/fsys/fsys_mntent.c.rej patching file configure Hunk #1 succeeded at 25009 (offset -254 lines). patching file configure.d/config_os_functions Hunk #1 succeeded at 98 (offset -1 lines). patching file include/net-snmp/net-snmp-config.h.in Hunk #1 succeeded at 719 (offset -18 lines).