[Mageia-dev] [soft-commits] [5525] (mkinitrd) Fix prefix checking in foreign partition check (mga#6966)

Thierry Vignaud thierry.vignaud at gmail.com
Sat Sep 1 17:15:23 CEST 2012


On 1 September 2012 16:40,  <root at mageia.org> wrote:
> Revision 5525 Author colin Date 2012-09-01 16:40:52 +0200 (Sat, 01 Sep 2012)
>
> Log Message
>
> (mkinitrd) Fix prefix checking in foreign partition check (mga#6966)

Nice spot.

> Modified: drakx/trunk/perl-install/bootloader.pm
> ===================================================================
> --- drakx/trunk/perl-install/bootloader.pm	2012-08-31 23:38:35 UTC (rev
> 5524)
> +++ drakx/trunk/perl-install/bootloader.pm	2012-09-01 14:40:52 UTC (rev
> 5525)
> @@ -113,7 +113,7 @@
>      return $initrd if $::testing  # testing mode
>        || -e "$::prefix/$initrd"   # already exists
>          || $initrd =~ /\(hd/      # unrecognized partition
> -          || !-d $dir;            # dir doesn't exist (probably !mounted
> foreign part)
> +          || !-d "$::prefix/$dir";# dir doesn't exist (probably !mounted
> foreign part)


More information about the Mageia-dev mailing list