3
0
forked from pool/util-linux
util-linux/util-linux-2.24-fdisk_remove_bogus_warnings.patch
Marcus Meissner 2f735a5283 Accepting request 210398 from home:rudi_m:branches:Base:System
- Update to util-linux-2.24, see package changelog and
  ftp://ftp.kernel.org/pub/linux/utils/util-linux/v2.24/v2.24-ReleaseNotes

Most notable spec file changes:
- Added enable_last condition in case we don't want to use the last
  binary from sysvinit-tools in future
- Upstream moved getopt examples from datadir to docdir but we keep
  the old location because we would need to fix the manpage first.

OBS-URL: https://build.opensuse.org/request/show/210398
OBS-URL: https://build.opensuse.org/package/show/Base:System/util-linux?expand=0&rev=196
2013-12-12 12:34:11 +00:00

19 lines
601 B
Diff

--- util-linux-2.24/libfdisk/src/dos.c.orig 2013-10-21 11:22:29.810014709 +0200
+++ util-linux-2.24/libfdisk/src/dos.c 2013-11-13 23:57:27.535962925 +0100
@@ -1107,6 +1107,7 @@
/* compute logical ending (c, h, s) */
long2chs(cxt, dos_partition_get_start(p) + dos_partition_get_size(p) - 1, &lec, &leh, &les);
+#if 0
/* Same physical / logical beginning? */
if (cxt->geom.cylinders <= 1024
&& (pbc != lbc || pbh != lbh || pbs != lbs)) {
@@ -1117,6 +1118,7 @@
pbc, pbh, pbs,
lbc, lbh, lbs);
}
+#endif
/* Same physical / logical ending? */
if (cxt->geom.cylinders <= 1024