X-Git-Url: https://git.tld-linux.org/?p=packages%2Frpm.git;a=blobdiff_plain;f=missing-ghost-terminate-build.patch;fp=missing-ghost-terminate-build.patch;h=9e7ef7a0038ccf5c582521feb9e73731d26353c4;hp=0000000000000000000000000000000000000000;hb=e56b042e3aa3c1ff937bc994ab6bb2019260bfb6;hpb=480dc12a1a19a0b2d645f534346f245150222624 diff --git a/missing-ghost-terminate-build.patch b/missing-ghost-terminate-build.patch new file mode 100644 index 0000000..9e7ef7a --- /dev/null +++ b/missing-ghost-terminate-build.patch @@ -0,0 +1,19 @@ +--- rpm-4.16.0/build/files.c~ 2020-12-18 19:15:59.000000000 +0100 ++++ rpm-4.16.0/build/files.c 2020-12-18 19:34:33.456509321 +0100 +@@ -1401,7 +1401,6 @@ + * various cases, preserving historical behavior wrt %dev(): + * - for %dev() entries we fake it up whether the file exists or not + * - otherwise try to grab the data by lstat() +- * - %ghost entries might not exist, fake it up + */ + if (statp == NULL) { + memset(&statbuf, 0, sizeof(statbuf)); +@@ -1410,8 +1409,6 @@ + statp = fakeStat(&(fl->cur), &statbuf); + } else if (lstat(diskPath, &statbuf) == 0) { + statp = &statbuf; +- } else if (fl->cur.attrFlags & RPMFILE_GHOST) { +- statp = fakeStat(&(fl->cur), &statbuf); + } else { + int lvl = RPMLOG_ERR; + int ignore = 0;