pf-tools/pf-tools-0.33-stable: Fix: uninitialized value for $typ...
parmelan-guest at users.alioth.debian.org
parmelan-guest at users.alioth.debian.org
Fri Mar 11 13:53:40 UTC 2011
details: http://hg.debian.org/hg/pf-tools/pf-tools-0.33-stable/rev/f8c0ba93004c
changeset: 546:f8c0ba93004c
user: "Christophe Caillet <quadchris at free.fr>"
date: Fri Mar 11 14:53:15 2011 +0100
description:
Fix: uninitialized value for $type and $append_version in sbin/mk_pxelinuxcfg
diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
debian/changelog | 2 ++
sbin/mk_pxelinuxcfg | 2 +-
diffs (30 lines):
diff -r 0c5fb7513db2 -r f8c0ba93004c debian/changelog
--- a/debian/changelog Thu Mar 03 12:04:09 2011 +0100
+++ b/debian/changelog Fri Mar 11 14:53:15 2011 +0100
@@ -2,8 +2,10 @@
* Adding directive preseedtpl
* Correctly handle pxetemplate directive
+ * Fix: uninitialized value for $type and $append_version in
+ sbin/mk_pxelinuxcfg
- -- Christophe Caillet <quadchris at free.fr> Tue, 01 Mar 2011 15:26:26 +0100
+ -- Christophe Caillet <tof at sitadelle.com> Fri, 11 Mar 2011 14:50:38 +0100
pf-tools (0.33.22-1) unstable; urgency=low
diff -r 0c5fb7513db2 -r f8c0ba93004c sbin/mk_pxelinuxcfg
--- a/sbin/mk_pxelinuxcfg Thu Mar 03 12:04:09 2011 +0100
+++ b/sbin/mk_pxelinuxcfg Fri Mar 11 14:53:15 2011 +0100
@@ -60,7 +60,10 @@
}
else {
my ( $vm, $version, $type, $append_version ) = split ( /-/, $pxefilename ) ;
- return "linux-image-".$version."-".$type."-".$append_version."-grsec" ;
+ $type = ( $type ) ? "-".$type : "";
+ $append_version = ( $append_version ) ? "-".$append_version : "";
+ my $kernel = "linux-image-".$version.$type.$append_version;
+ return $kernel."-grsec" ;
}
}
}
More information about the pf-tools-commits
mailing list