/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */
Curt McNamee <[EMAIL PROTECTED]> wrote:
>
> [root@temp 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 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
> --------------------------
The interesting error text is "can't find file to patch", the first line
reported to you. As you can see, the pathname says to look for a file
called "linux-2.0.36.orig/include/net/ip_masq.h". There's probably no
directory called "linux-2.0.36.orig" in your current directory, so the
path fails. That's what the "-p" option is for.
> [root@temp linux]# patch -p0 < ip_masq_icq_ker-2.0.36.diff
> can't find file to patch at input line 4
Same problem, because "-p0" means "Take the entire pathname and don't
modify it." In your kernel source directory, which I assume is your
current directory, the directory that *does* exist is probably
"include", and in fact "include/net/ip_masq.h" probably exists. That
means you want the patch utility to ignore the *first* directory entry,
"linux-2.0.36", and then search from there. So you would use "-p1" to
tell it to delete one directory from the specified path.
I know this is hard to explain to non-programmers. The patch author
could have done a bit better job creating the patch.. ;)
--
[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/
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.