/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */
Curt McNamee <[EMAIL PROTECTED]> wrote:
>
> [root@peggy src]# patch < ip_masq_icq_ker-2.0.36.diff
> can't find file to patch at input line 4
> Perhaps you should have used the -p or --strip option?
The patch utility is giving you a hint that you need the -p option.
> The text leading up to this was:
> --------------------------
> |diff -ur linux-2.0.36.orig/include/net/ip_masq.h
> linux-2.0.36/include/net/ip_masq.h
> |--- linux-2.0.36.orig/include/net/ip_masq.h Sat Mar 20 23:59:15 1999
> |+++ linux-2.0.36/include/net/ip_masq.h Sun Mar 21 05:49:41 1999
> --------------------------
>
> I see that it is looking for a "linux-2.0.36.orig" directory. I don't have
> one of those...
And that's the problem. The guy who made the patch, made a
linux-2.0.36.orig directory with the original source code, and then made
a linux-2.0.36 directory that he put his patched sources into. But you
don't have that directory structure, so the patch fails.
The patch "-p" option was made for situations like this. If you
give it the "-p0" option, it means to use the full pathname as
given, which won't work at all. But if you use "-p1", it will
remove the first directory level, and thus look for a file called
"include/net/ip_masq.h". If you run the utility from inside your
/usr/src/linux directory, this path will be found, and then the patch
will succeed! So give that a try. :)
--
[EMAIL PROTECTED] (Fuzzy Fox) || "Just about every computer on the market
sometimes known as David DeSimone || today runs Unix, except the Mac (and
http://www.dallas.net/~fox/ || nobody cares about it). -- Bill Joy '85
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ -- THIS INCLUDES
UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.