Package: cereal
Version: 0.21-1
Severity: normal

Hi,

if udev's SYMLINK function is used to have static device names for
USB-to-serial adaptors, cerealadmin's method to detect the group
needed is flawed:

SGROUP=$(ls -l "$TTY" | awk '{ print $4 }')

will get the symlink's group, which is root.

A better approach would be to dereference the symlink before obtaining
the group.

SGROUP=$(stat --dereference --printf="%G\n" $4)

Alternatively, ls's -H switch can be used.

Greetings
Marc



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

Kernel: Linux 2.6.25.4-scyw00225 (PREEMPT)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cereal depends on:
ii  adduser                       3.108      add and remove users and groups
ii  runit                         1.9.0-1    a UNIX init scheme with service su
ii  screen                        4.0.3-10   terminal multiplexor with VT100/AN

cereal recommends no packages.

-- no debconf information



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to