View | Details | Raw Unified | Return to bug 34398
Collapse All | Expand All

(-)a/build/files.c (-2 / +13 lines)
Lines 1151-1157 static void genCpioListAndHeader(Spec spec, /*@partial@*/ FileList fl, Link Here
1151
      }
1151
      }
1152
1152
1153
      if (sizeof(flp->fl_ino) != sizeof(uint_32)) {
1153
      if (sizeof(flp->fl_ino) != sizeof(uint_32)) {
1154
	uint_32 ino = (uint_32)flp->fl_ino;
1154
	uint_32 ino;
1155
	if (flp->fl_mode & S_IFMT != S_IFREG || flp->fl_nlink == 1 || i == 0)
1156
	  ino = (uint_32)i;
1157
	else {
1158
	  FileListRec tmp;
1159
	  for (int j = 0; j <= i; j++) {
1160
	    tmp = fl->fileList + j;
1161
	    if (flp->fl_ino == tmp->fl_ino) {
1162
	      ino = (uint_32)j;
1163
	      break;
1164
	    }
1165
	  }
1166
	}
1155
	(void) headerAddOrAppendEntry(h, RPMTAG_FILEINODES, RPM_INT32_TYPE,
1167
	(void) headerAddOrAppendEntry(h, RPMTAG_FILEINODES, RPM_INT32_TYPE,
1156
				&(ino), 1);
1168
				&(ino), 1);
1157
      } else {
1169
      } else {
1158
- 

Return to bug 34398