Re: embarrassing patch question

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

 



> > Then without changing the directory, I attempt to patch the directory like
> > so:
> > patch -d linux-to-be-patched -p1 < k2.patch
> 
> try:
> cd linux-to-be-patched
> patch -p1 < ../k2.patch

The manual page claims, that
$ patch -d directory -p1 < the.patch
and
$ cd directory
$ patch -p1 < ../the.patch
is _exactly_ equivalent. So if one of them works and the other does not, it
seems like a bug in patch or at least in the man page.

Oh, think I see the fault now. diff seems to handle symlinks wrong. There is
the dontdiff file to take care of that. (-X dontdiff option)

--------------------------------------------------------------------------------
                  				- Jan Hudec `Bulb' <bulb@ucw.cz>
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
IRC Channel:   irc.openprojects.net / #kernelnewbies
Web Page:      http://www.kernelnewbies.org/


[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