1 --- rpm-4.16.0/build/files.c~ 2020-12-18 19:15:59.000000000 +0100
2 +++ rpm-4.16.0/build/files.c 2020-12-18 19:34:33.456509321 +0100
4 * various cases, preserving historical behavior wrt %dev():
5 * - for %dev() entries we fake it up whether the file exists or not
6 * - otherwise try to grab the data by lstat()
7 - * - %ghost entries might not exist, fake it up
10 memset(&statbuf, 0, sizeof(statbuf));
12 statp = fakeStat(&(fl->cur), &statbuf);
13 } else if (lstat(diskPath, &statbuf) == 0) {
15 - } else if (fl->cur.attrFlags & RPMFILE_GHOST) {
16 - statp = fakeStat(&(fl->cur), &statbuf);