]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-5.4.7-rpmfc-fix-invalid-free-if-not-_defaultdocdir-set.patch
- added nosetproctitle patch (disable setproctitle as internal function or external...
[packages/rpm.git] / rpm-5.4.7-rpmfc-fix-invalid-free-if-not-_defaultdocdir-set.patch
1 --- rpm-5.4.7/lib/rpmfc.c.free~ 2012-03-10 19:45:12.592164430 +0100
2 +++ rpm-5.4.7/lib/rpmfc.c       2012-03-10 19:45:15.353166385 +0100
3 @@ -901,7 +901,7 @@ static int rpmfcSCRIPT(rpmfc fc)
4      if (fc->fcolor->vals[fc->ix] & RPMFC_PERL) {
5         defaultdocdir = rpmExpand("%{?_defaultdocdir}", NULL);
6         if (defaultdocdir == NULL || *defaultdocdir == '\0') 
7 -            defaultdocdir = "/usr/share/doc";
8 +            defaultdocdir = strdup("/usr/share/doc");
9  
10         if (strncmp(fn, defaultdocdir, strlen(defaultdocdir))) {
11             if (fc->fcolor->vals[fc->ix] & RPMFC_MODULE)
This page took 0.030438 seconds and 3 git commands to generate.