Bug 153250

Summary: Minor script errors in /etc/dev.d/default/05-pam_console.dev
Product: [Fedora] Fedora Reporter: Michael Rommel <rommel>
Component: udevAssignee: Harald Hoyer <harald>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 4   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2005-04-21 09:13:15 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:

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):
udev-050-9

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
thx!