Aplicar parche al kernel de linux
Jose Miguel Vidal Lavin
jmvidal en sertotal.cl
Lun Nov 14 21:16:25 CLST 2005
Valentín González E. wrote:
> Hola listeros. Al aplicar un parche al kernel, cual es la diferencia en
>ejecutar:
>
>patch -p0 < xxxx.patch
>
>o
>
>patch -p1 < xxxx.patch
>
>
> De antemano gracias.
>
>
el man de patch dice:
-pnum or --strip=num
Strip the smallest prefix containing num leading slashes from
each file name found in the patch file. A
sequence of one or more adjacent slashes is counted as a
single slash. This controls how file names found in
the patch file are treated, in case you keep your files in a
different directory than the person who sent out
the patch. For example, supposing the file name in the patch
file was
/u/howard/src/blurfl/blurfl.c
setting -p0 gives the entire file name unmodified, -p1 gives
u/howard/src/blurfl/blurfl.c
without the leading slash, -p4 gives
blurfl/blurfl.c
and not specifying -p at all just gives you blurfl.c.
Whatever you end up with is looked for either in the cur-
rent directory, or the directory specified by the -d option.
saludos
Más información sobre la lista de distribución Linux