[ previous ] [ next ] [ threads ]
 
 From:  "MyLists at fantasymail dot de" <MyLists at fantasymail dot de>
 To:  m0n0wall at lists dot m0n0 dot ch
 Subject:  Correct use of kernel patches?
 Date:  Thu, 09 Sep 2004 03:54:47 +0200
Hello!

I am a bit confused about how to use that kernel
patches right. If i try simple "patch < filename.patch"
it dont work - but when i set a / before the path to
the .c file it looks like this. The patch files are located
in /usr/src/m0n0

Here is a sample - looks that all "normal" and right?

root# patch < if_ethersubr.c.patch
Hmm...  Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- sys/net/if_ethersubr.c.orig        Sat Nov  1 19:58:15 2003
|+++ sys/net/if_ethersubr.c     Sat Nov  1 19:58:30 2003
--------------------------
File to patch: /sys/net/if_ethersubr.c
Patching file /sys/net/if_ethersubr.c using Plan A...
Hunk #1 succeeded at 605 (offset -4 lines).
done
root# ls -la /sys/net/if_ethersubr.c.orig
-rw-r--r--  1 root  wheel  27805 Mar  3  2004 /sys/net/if_ethersubr.c.orig
root# ls -la /sys/net/if_ethersubr.c
-rw-r--r--  1 root  wheel  27825 Sep  9 01:46 /sys/net/if_ethersubr.c

Thanks for any help o)

Stefan