Package: tiger
Version: 1:3.2.3-4
Severity: normal

grep ^UMASK /etc/login.defs | expand | cut -d" " -f3
also returns an empty string in this version.
I suggest :
grep ^UMASK /etc/login.defs | sed -e "s/^UMASK\s\+//"
which works for any amount of tabs and spaces.

Here is the patch :

--- /usr/lib/tiger/systems/Linux/2/check_umask.orig     2011-04-02 
11:05:53.122391505 +0200
+++ /usr/lib/tiger/systems/Linux/2/check_umask  2011-04-02 11:06:38.156385009 
+0200
@@ -117,9 +117,7 @@
 # First check PAM's default since it applies to all shells
 GLOBALFILE="/etc/login.defs"
 if [ -r $GLOBALFILE ] ; then
-    GLOBALUMASK=`$GREP  ^UMASK $GLOBALFILE  \
-           | $EXPAND  \
-           | $CUT -d" " -f3`
+    GLOBALUMASK=`$GREP ^UMASK $GLOBALFILE | $SED -e "s/^UMASK\s\+//"`
 fi
 
 if [ -z "$GLOBALUMASK" ]; then



-- System Information:
Debian Release: 6.0.1
  APT prefers squeeze-updates
  APT policy: (500, 'squeeze-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.38-mobius (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=fr_FR@euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages tiger depends on:
ii  binutils                     2.20.1-16   The GNU assembler, linker and bina
ii  bsdmainutils                 8.0.13      collection of more utilities from 
ii  debconf [debconf-2.0]        1.5.36.1    Debian configuration management sy
ii  libc6                        2.11.2-10   Embedded GNU C Library: Shared lib
ii  net-tools                    1.60-23     The NET-3 networking toolkit
ii  ucf                          3.0025+nmu1 Update Configuration File: preserv

Versions of packages tiger recommends:
ii  chkrootkit                    0.49-4     rootkit detector
ii  john                          1.7.3.1-1  active password cracking tool
ii  postfix [mail-transport-agent 2.7.1-1    High-performance mail transport ag

Versions of packages tiger suggests:
ii  lsof                       4.81.dfsg.1-1 List open files

-- Configuration Files:
/etc/tiger/tiger.ignore changed [not included]

-- debconf information:
  tiger/mail_rcpt: root
  tiger/policy_adapt:



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to