Sisyphus repositório
Última atualização: 1 outubro 2023 | SRPMs: 18631 | Visitas: 37858316
en ru br
ALT Linux repositórios
S:2.39.2-alt1
5.0: 2.14.1-alt1
4.1: 2.13-alt8
4.0: 2.12r-alt6
3.0: 2.12q-alt1

Group :: Sistema/Base
RPM: util-linux

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs e FR  Repocop 

Patch: util-linux-2.11y-rh-fdisksegv-103954.patch
Download


*** util-linux-2.11y/fdisk/fdisk.c.000	2003-09-08 14:47:41.000000000 +0200
--- util-linux-2.11y/fdisk/fdisk.c	2003-09-08 15:01:42.000000000 +0200
***************
*** 2020,2028 ****
  	for (i = 0; i < 4; i++)
  		free_primary += !ptes[i].part_table->sys_ind;
  
! 	if (!free_primary && partitions >= MAXIMUM_PARTS) {
! 		printf(_("The maximum number of partitions has been created\n"));
! 		return;
  	}
  
  	if (!free_primary) {
--- 2020,2036 ----
  	for (i = 0; i < 4; i++)
  		free_primary += !ptes[i].part_table->sys_ind;
  
! 	// Fix to only add primary partition if all logical partions are used <leonardjo@hetnet.nl>
! 	if (partitions >= MAXIMUM_PARTS) {
! 		if (!free_primary) {
! 			printf(_("The maximum number of partitions has been created\n"));
! 			return;
! 		}
! 		else {
! 			add_partition(get_partition(0, 4),
! 				      LINUX_NATIVE);
! 			return;
! 		}
  	}
  
  	if (!free_primary) {
 
projeto & código: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
mantenedor atual: Michael Shigorin
mantenedor da tradução: Fernando Martini aka fmartini © 2009