]> git.pld-linux.org Git - packages/rpm.git/blob - rpm-payload-use-hashed-inode.patch
- fix for bug LP#1104474
[packages/rpm.git] / rpm-payload-use-hashed-inode.patch
1 --- rpm-5.4.10/lib/fsm.c~
2 +++ rpm-5.4.10/lib/fsm.c
3 @@ -898,6 +898,7 @@ int fsmMapAttrs(IOSM_t fsm)
4  
5      if (fi && i >= 0 && i < (int) fi->fc) {
6         mode_t perms = (S_ISDIR(st->st_mode) ? fi->dperms : fi->fperms);
7 +       ino_t finalInode = (fi->finodes ? (ino_t)fi->finodes[i] : 0);
8         mode_t finalMode = (fi->fmodes ? (mode_t)fi->fmodes[i] : perms);
9         dev_t finalRdev = (dev_t)(fi->frdevs ? fi->frdevs[i] : 0);
10         rpmuint32_t finalMtime = (fi->fmtimes ? fi->fmtimes[i] : 0);
11 @@ -937,6 +938,7 @@ int fsmMapAttrs(IOSM_t fsm)
12             if ((S_ISCHR(st->st_mode) || S_ISBLK(st->st_mode))
13             && st->st_nlink == 0)
14                 st->st_nlink = 1;
15 +           st->st_ino = finalInode;
16             st->st_rdev = finalRdev;
17             st->st_mtime = finalMtime;
18         }
This page took 0.033378 seconds and 4 git commands to generate.