linux-image.postinst: Use lstat() to check symlink existence (Closes: #738707)

svn path=/dists/trunk/linux/; revision=21046
This commit is contained in:
Ben Hutchings 2014-02-13 23:42:07 +00:00
parent e6ba2dd0e8
commit 373d086904
2 changed files with 10 additions and 4 deletions

2
debian/changelog vendored
View File

@ -13,6 +13,8 @@ linux (3.13.2-1~exp1) UNRELEASED; urgency=low
* [x86] snd-pcsp: Disable autoload (Closes: #697709)
* DFSG: Remove the af9005 initialisation script and vs6624 driver again
(they were renamed in 3.7)
* linux-image.postinst: Use lstat() to check symlink existence
(Closes: #738707)
-- Ben Hutchings <ben@decadent.org.uk> Thu, 23 Jan 2014 15:05:08 +0000

View File

@ -537,13 +537,17 @@ if (! defined $ARGV[1] || ! $ARGV[1] || $ARGV[1] =~ m/<unknown>/o) {
}
}
else {
if (! -e "$kimage") {
lstat($kimage);
if (! -e _) {
handle_missing_link($kimage, $image_dest, "$kimage-$version",
$realimageloc);
}
if ($initrd && ! -e "initrd.img") {
handle_missing_link("initrd.img", $image_dest, "initrd.img-$version",
$realimageloc);
if ($initrd) {
lstat("initrd.img");
if (! -e _) {
handle_missing_link("initrd.img", $image_dest, "initrd.img-$version",
$realimageloc);
}
}
}