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

(-)a/build/files.c (-6 / +3 lines)
Lines 1144-1157 static void genCpioListAndHeader(Spec spec, /*@partial@*/ FileList fl, Link Here
1144
	(void) headerAddOrAppendEntry(h, RPMTAG_FILERDEVS, RPM_INT16_TYPE,
1144
	(void) headerAddOrAppendEntry(h, RPMTAG_FILERDEVS, RPM_INT16_TYPE,
1145
			       &(flp->fl_rdev), 1);
1145
			       &(flp->fl_rdev), 1);
1146
      }
1146
      }
1147
      if (sizeof(flp->fl_dev) != sizeof(uint_32)) {
1147
      {
1148
	uint_32 pdevice = (uint_32)flp->fl_dev;
1148
	uint_32 pdevice = flp->fl_dev ? 1 : 0;
1149
	(void) headerAddOrAppendEntry(h, RPMTAG_FILEDEVICES, RPM_INT32_TYPE,
1149
	(void) headerAddOrAppendEntry(h, RPMTAG_FILEDEVICES, RPM_INT32_TYPE,
1150
			       &(pdevice), 1);
1150
			       &(pdevice), 1);
1151
      } else {
1152
	(void) headerAddOrAppendEntry(h, RPMTAG_FILEDEVICES, RPM_INT32_TYPE,
1153
			       &(flp->fl_dev), 1);
1154
      }
1151
      }
1152
1155
      if (sizeof(flp->fl_ino) != sizeof(uint_32)) {
1153
      if (sizeof(flp->fl_ino) != sizeof(uint_32)) {
1156
	uint_32 ino = (uint_32)flp->fl_ino;
1154
	uint_32 ino = (uint_32)flp->fl_ino;
1157
	(void) headerAddOrAppendEntry(h, RPMTAG_FILEINODES, RPM_INT32_TYPE,
1155
	(void) headerAddOrAppendEntry(h, RPMTAG_FILEINODES, RPM_INT32_TYPE,
1158
- 

Return to bug 34398