Fix command redirection in postinst script
authorJoachim Wiedorn <joodebian@joonet.de>
Sun, 9 Sep 2018 15:09:12 +0000 (17:09 +0200)
committerJoachim Wiedorn <joodebian@joonet.de>
Sun, 9 Sep 2018 15:09:12 +0000 (17:09 +0200)
debian/changelog
debian/lilo.postinst
debian/rules

index b3f9b339f7633f66a35fe09abd3b37aa562a2369..ca5b7e5e6abfcc3710c7be683152c05aa09b5170 100644 (file)
@@ -6,6 +6,8 @@ lilo (1:24.2-4) UNRELEASED; urgency=medium
   * debian/patches:
     - 02: Remove patches vor vendorspecific naming. Closes: #896081
     - 09: add new patch, fix manpage lilo.conf.5. Closes: #902711
+  * lilo.postinst:
+    - Fix command redirection in the script. Closes: #908242
 
  -- Joachim Wiedorn <joodebian@joonet.de>  Sun, 09 Sep 2018 16:07:53 +0200
 
index 4ede5ea2da49c2c20966b119e5ec95267fb5bcf5..43116fbb3597b0556e1098d26c4394de917a74ef 100644 (file)
@@ -36,7 +36,7 @@ case "$1" in
        # Check whether /boot is on another partition and mount it. See Bug#216250
        if grep "[[:space:]]/boot[[:space:]]" /etc/fstab | grep -vq "^#"; then
           if ! grep -q "[[:space:]]/boot[[:space:]]" /etc/mtab ; then
-               mount /boot 2>&1 > /dev/null
+               mount /boot  > /dev/null 2>&1
 
                if [ $? -ne 0 ]; then
                        echo
index d8663ebe27513306cabba75bdbf1055c98812a1e..0191238fb2db0b12c043b234bfa3ea58f4a383c3 100755 (executable)
@@ -13,8 +13,8 @@
 override_dh_auto_build:
        dh_auto_build
        @echo "Extract html documentation (tech.html, user.html)"
-       uudecode -o /dev/stdout debian/doc/tech.html.uu 2>/dev/null | tar -x -z -C debian
-       uudecode -o /dev/stdout debian/doc/user.html.uu 2>/dev/null | tar -x -z -C debian
+       uudecode -o /dev/stdout debian/doc/tech.html.uu  2> /dev/null | tar -x -z -C debian
+       uudecode -o /dev/stdout debian/doc/user.html.uu  2> /dev/null | tar -x -z -C debian
 
 override_dh_fixperms-arch:
        dh_fixperms