Questions tagged [patch]

A patch is a piece of software designed to fix problems with, or update a computer program or its supporting data. This includes fixing security vulnerabilities and other bugs, and improving the usability or performance.

Programmers publish and apply patches in various forms. Because proprietary software authors withhold their source code, their patches are distributed as binary executables instead of source. This type of patch modifies the program executable—the program the user actually runs—either by modifying the binary file to include the fixes or by completely replacing it.

Patches can also circulate in the form of source code modifications. In these cases, the patches consist of textual differences between two source code files. These types of patches commonly come out of open source projects. In these cases, developers expect users to compile the new or changed files themselves.

Because the word "patch" carries the connotation of a small fix, large fixes may use different nomenclature. Bulky patches or patches that significantly change a program may circulate as "service packs" or as "software updates". Microsoft Windows NT and its successors (including Windows 2000, Windows XP, and later versions) use the "service pack" terminology.

In several Unix-like systems, particularly Linux, updates between releases are delivered as new software packages. These updates are in the same format as the original installation so they can be used either to update an existing package in-place (effectively patching) or be used directly for new installations.

2809 questions
1
vote
1 answer

What patch format is this and how do I apply it

What patch format is this and how do I apply it? https://code.djangoproject.com/attachment/ticket/9025/nested_inlines_2.diff From 117e99511e0985701780ed1bcd3afd456e244ae3 Added assertXML[Not]Equal assertions To …
A G
  • 997
  • 2
  • 18
  • 36
1
vote
2 answers

Download patches from WSUS for workgroup server

My server is not on the domain so I cannot use group policy. I read about this article to update the registry key on the machine: https://serverfault.com/questions/316372/how-to-configure-workgroup-to-receive-updates-from-wsus I do not wish to…
minisch
  • 323
  • 5
  • 19
1
vote
1 answer

need to include a new file with 'diff' utility as a patch

When doing "diff -bBupwr" of two directories, dir and dir.orig to capture the differences, the util doesn't include files that exist only in dir, it only reports that e.g. dir/app.c exists only in dir/, but I would like it to be added in a resulting…
Mark
  • 6,052
  • 8
  • 61
  • 129
1
vote
1 answer

Apply "Eclipse Workspace Patch" using command line

For our project we use cvs and we want share changes using patch created using eclipse with configuration in image: The patch is like this: ### Eclipse Workspace Patch 1.0 #P project2 Index:…
lquitadamo
  • 633
  • 9
  • 22
1
vote
0 answers

How do I patch or fill intersecting areas in one figure with several curves?

I am trying to fill different section of a multi plot figure. This is my code: function BFL a1=(-10):0.1:10; b=((1+a1).^2)./4; a2=1; B=[b,fliplr(b)]; A=[a1, fliplr(a2)]; fill(A,B, 'b'); hold on; a=(-10):0.5:10; …
MaryK
  • 11
  • 1
  • 2
  • 8
1
vote
0 answers

Eclipse is not applying part of my patch but no errors

My team and I often exchange patches created in eclipse when working on the same parts of code. I just made a patch for my teammate that includes our changes he had just given me and a function I just added. When I save the patch in a txt file and…
user2847749
  • 339
  • 2
  • 9
  • 27
1
vote
1 answer

Getting full indexes of a patch using libgit2 / git2go

git2go's git.Patch or libgit2's git_patch returns a String value of the following format: "diff": "diff --git a/test b/test index 9daeafb..dced80a 100644 --- a/test +++ b/test @@ -1 +1,3 @@ test …
1
vote
1 answer

Calculating CRC initial value instead of appending the CRC to payload

Most of the CRCs I've implemented were appending the calculated CRC value to the message (payload) and checking for a zero result at the receiver after all bytes incl. CRC value were fed through the CRC register. Obviously this is a quite standard…
fhw72
  • 1,066
  • 1
  • 11
  • 19
1
vote
0 answers

python - mock open for reading data

E.g., I wrote some data to the file and then try to read them: mocked_open = mock_open() with patch('__builtin__.open', mocked_open, create=True): with open('file', 'w') as f: f.write('text') with open('file', 'r') as f: res…
Bred
  • 11
  • 5
1
vote
2 answers

Change turtle context into patch context to color patches

A table is written in turtle context with values between 0 and 1 and patchID as keys. Each patch should be colored according to the value in the table with scale-color. The result should look sth. like the heat diffusion model in the library. So…
Jan
  • 45
  • 4
1
vote
2 answers

Linux glibc versions 2.18 and older - vulnerability

Server: Red Hat Enterprise Linux Server release 5.9 (Tikanga) I came to know that Linux GNU C Library (glibc) versions prior to 2.18 are vulnerable to remote code execution via a vulnerability in the gethostbyname function. Exploitation of this…
AKS
  • 16,482
  • 43
  • 166
  • 258
1
vote
1 answer

How to have git stats on a diff file?

While in a git repository, I can do : git log --oneline --stat and I'll have a nice output looking like: ca0ab77 commit message a/file/changed | 19 ------------------- 1 file changed, 19 deletions(-) In my case, I am working outside a git…
Mathieu Nls
  • 2,285
  • 2
  • 17
  • 32
1
vote
1 answer

Cannot find sources of WSO2 Identity Server 5.0.0 patch SP1

does anyone know where can I find sources for WSO2 Identity Server 5.0.0 - Service Pack 1? That SVN WSO2 repository is very complex. And there's no clue where to look for it. According the "help page" Building from source WSO2 Sources should be…
Josef Bureš
  • 125
  • 1
  • 11
1
vote
1 answer

Puppet for patching software

I am totally new to Puppet. I am using Puppet Enterprise 3.7 and have a lab set up with a puppet master and puppet agents running on Linux CentOS. The primary aim is to use Puppet automation as an auditing and patching tool. I would like to audit…
1
vote
1 answer

How do you test the 'Patch' action in Web API 2 controllers?

I have a basic test case that puts together a Delta object to pass to my controller's 'PATCH' action which I am able to do successfully. My test code is as follows [TestMethod] public async Task Patch_Product() { // Act var…