[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#461122: masqmail: Warning from tail in postinst



Package: masqmail
Version: 0.2.21-2
Severity: minor
Tags: patch

When running postinst, a deprecated call to tail causes the following
error:
tail: Warning: "+number" syntax is deprecated, please use "-n +number"

--- masqmail.postinst	2008-01-10 18:24:04.000000000 -0600
+++ masqmail.postinst.new	2008-01-10 18:24:29.000000000 -0600
@@ -74,7 +74,7 @@
         sed -n 1,$(( $LINES - 1 ))p < $CONFIGFILE > $WORKTMP
       fi
       cat $DEBCONFTMP >> $WORKTMP
-      sed -n '/^### END DEBCONF SECTION/,$p' < $CONFIGFILE | tail +2 >> $WORKTMP
+      sed -n '/^### END DEBCONF SECTION/,$p' < $CONFIGFILE | tail -n +2 >> $WORKTMP
     else
       echo "Existing $CONFIGFILE has missing or half-open debconf region;" >&2;
       echo "not writing masqmail configuration file." >&2;


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.24-rc5-x86-1ken (SMP w/1 CPU core)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages masqmail depends on:
ii  debconf [debconf-2.0]         1.5.18     Debian configuration management sy
ii  libc6                         2.7-5      GNU C Library: Shared libraries
ii  libglib2.0-0                  2.14.4-2   The GLib library of C routines
ii  libident                      0.22-3     simple RFC1413 client library - ru
ii  liblockfile1                  1.06.2     NFS-safe locking library, includes
ii  netbase                       4.30       Basic TCP/IP networking system

masqmail recommends no packages.

-- debconf information excluded



Reply to: