Bug 153250 - Minor script errors in /etc/dev.d/default/05-pam_console.dev
Minor script errors in /etc/dev.d/default/05-pam_console.dev
Product: Fedora
Classification: Fedora
Component: udev (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Harald Hoyer
Depends On:
  Show dependency treegraph
Reported: 2005-04-03 21:01 EDT by Michael Rommel
Modified: 2007-11-30 17:11 EST (History)
0 users

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2005-04-21 09:13:15 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description Michael Rommel 2005-04-03 21:01:37 EDT
Description of problem:

1. debug messages are not printed
2. symlinks are not correctly given permissions

Version-Release number of selected component (if applicable):

How reproducible:
Always reproducible.

Steps to Reproduce:
1. edit /etc/udev/udev.conf, set udev_log to "yes"
   plug in a device and you do not see debug messages in the syslog.
2. create a file /etc/udev/rules.d/45-powermate.rules with content
   KERNEL="event*", SYSFS{product}="Griffin PowerMate", SYMLINK="powermate"
   plug in a powermate device, the symlink will be correctly created as
   /dev/powermate, but the name /dev//dev/powermate will be given as 
   parameter to the 05-pam_console.dev script.

Actual results:
1. no syslog messages
2. incorrect symlink name deduced

Expected results:
1. syslog messages
2. correct symlink as parameter to pam_console_apply

Additional info:

Solution is:
1. correct line 32 to read (make lowercase and change 1 to yes):
            test -z "$udev_log" -o "$udev_log" != "yes" && return
2. correct line 44 to read (delete ${udev%%/} path prepending):
                SYMLINKS="$SYMLINKS $i"
   According to the udevinfo man:
       -r     Print  the  udev_root directory. When used in conjunction with a
              query for the node name or the symlink names, the udev_root will
              be prepended to query result.
Comment 1 Harald Hoyer 2005-04-21 09:13:15 EDT

Note You need to log in before you can comment on or make changes to this bug.