diff options
author | Ben Hutchings <benh@debian.org> | 2014-02-13 23:42:07 +0000 |
---|---|---|
committer | Ben Hutchings <benh@debian.org> | 2014-02-13 23:42:07 +0000 |
commit | 373d086904305699561b1eb505c33b010c24de9b (patch) | |
tree | 9b92752bf1e57a0de93e9e5e7d36dab674b393a6 | |
parent | e6ba2dd0e8ef33283d734c865a2caa186378eeee (diff) | |
download | kernel_replicant_linux-373d086904305699561b1eb505c33b010c24de9b.tar.gz kernel_replicant_linux-373d086904305699561b1eb505c33b010c24de9b.tar.bz2 kernel_replicant_linux-373d086904305699561b1eb505c33b010c24de9b.zip |
linux-image.postinst: Use lstat() to check symlink existence (Closes: #738707)
svn path=/dists/trunk/linux/; revision=21046
-rw-r--r-- | debian/changelog | 2 | ||||
-rwxr-xr-x | debian/templates/image.plain.postinst.in | 12 |
2 files changed, 10 insertions, 4 deletions
diff --git a/debian/changelog b/debian/changelog index 22291d46750a..d80c160511be 100644 --- a/debian/changelog +++ b/debian/changelog @@ -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 diff --git a/debian/templates/image.plain.postinst.in b/debian/templates/image.plain.postinst.in index 978e4fd73318..fe8ba9b5b10e 100755 --- a/debian/templates/image.plain.postinst.in +++ b/debian/templates/image.plain.postinst.in @@ -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); + } } } |