]> git.pld-linux.org Git - packages/util-linux.git/blame - util-linux-fdisksegv.patch
- cryptsetup-luks isn't equivalent of cryptsetup
[packages/util-linux.git] / util-linux-fdisksegv.patch
CommitLineData
5545a732
JR
1if all extended partitions are used up adding a new partition will also ask if
2you want to add a logical partition. Choosing this option makes fdisk segfault
3
4*** util-linux-2.11y/fdisk/fdisk.c.000 2003-09-08 14:47:41.000000000 +0200
5--- util-linux-2.11y/fdisk/fdisk.c 2003-09-08 15:01:42.000000000 +0200
6***************
7*** 2020,2028 ****
8 for (i = 0; i < 4; i++)
9 free_primary += !ptes[i].part_table->sys_ind;
10
11! if (!free_primary && partitions >= MAXIMUM_PARTS) {
12! printf(_("The maximum number of partitions has been created\n"));
13! return;
14 }
15
16 if (!free_primary) {
17--- 2020,2036 ----
18 for (i = 0; i < 4; i++)
19 free_primary += !ptes[i].part_table->sys_ind;
20
21! // Fix to only add primary partition if all logical partions are used <leonardjo@hetnet.nl>
22! if (partitions >= MAXIMUM_PARTS) {
23! if (!free_primary) {
24! printf(_("The maximum number of partitions has been created\n"));
25! return;
26! }
27! else {
28! add_partition(get_partition(0, 4),
29! LINUX_NATIVE);
30! return;
31! }
32 }
33
34 if (!free_primary) {
This page took 0.031932 seconds and 4 git commands to generate.