Re: pacth question

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Tyler,

On Thu, Jun 03, 2004 at 11:26:57AM +0200, Tyler told us:
> 
> But when i hit the command : "cat monpatch | -p1", there is the 
> following error :
> 
> can't find file to patch at input line 3
> Perhaps you used the wrong -p or --strip option?
> The text leading up to this was:
> --------------------------
> |--- include/linux/kernel.org.h 2004-06-03 11:21:53.000000000 +0200
> |+++ include/linux/kernel.h     2004-06-03 11:22:13.000000000 +0200
> --------------------------
> File to patch:
> 
> Where is my error ?
> 

You need to specify -p0 with this diff, so it won't strip the
first directory component (include/) from the path. Or, more
widely used, create your diff one level above the kernel source
directory, so you have paths like 

linux-2.6.7/include/linux/kernel.h

in the diff. Then you can do 'patch -p1'.


HTH

Sven

-- 
Linux zion 2.6.7-rc2 #2 Mon May 31 22:58:01 CEST 2004 i686 athlon i386 GNU/Linux
 11:52:26  up 2 days, 12:52,  3 users,  load average: 1.34, 0.86, 0.35

Attachment: pgp00583.pgp
Description: PGP signature


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux